Advanced multimodal model optimized for reasoning, coding, content generation, and complex problem-solving with strong accuracy and reliability.
GPT 5.4 من تطوير OpenAI. توفّر Atlas Cloud (التي تُشغّلها Atlas Cloud AI LLC) إمكانية الوصول إليه ولا تملكه. جميع العلامات التجارية ملك لأصحابها المعنيين.
import os
from openai import OpenAI
# Multimodal Understanding Example# Image: use base64 encoding (data:image/png;base64,...) or a public URLclient = OpenAI( api_key=os.getenv("ATLASCLOUD_API_KEY"), base_url="https://api.atlascloud.ai/v1")response = client.chat.completions.create( model="openai/gpt-5.4", messages=[{"role":"user","content":[{"type":"image_url","image_url":{"url":"data:image/png;base64,<BASE64_IMAGE_DATA>"}},{"type":"text","text":"Please describe the content of this image"}]}], max_tokens=64000, temperature=0.7)print(response.choices[0].message.content)
التثبيت
قم بتثبيت الحزمة المطلوبة للغة البرمجة الخاصة بك.
bash
pip install requests
المصادقة
تتطلب جميع طلبات API المصادقة عبر مفتاح API. يمكنك الحصول على مفتاح API الخاص بك من لوحة تحكم Atlas Cloud.
bash
exportATLASCLOUD_API_KEY="your-api-key-here"
ترويسات HTTP
python
import os
API_KEY = os.environ.get("ATLASCLOUD_API_KEY")headers ={"Content-Type":"application/json","Authorization":f"Bearer {API_KEY}"}
حافظ على أمان مفتاح API الخاص بك
لا تكشف أبدًا مفتاح API الخاص بك في الكود من جانب العميل أو المستودعات العامة. استخدم متغيرات البيئة أو وكيل الخادم الخلفي بدلاً من ذلك.
إرسال طلب
import requests
url ="https://api.atlascloud.ai/v1/chat/completions"headers ={"Content-Type":"application/json","Authorization":"Bearer $ATLASCLOUD_API_KEY"}data ={"model":"openai/gpt-5.4","messages":[{"role":"user","content":"what is difference between http and https"}],"max_tokens":64000,"temperature":0.7,"stream":False}response = requests.post(url, headers=headers, json=data)print(response.json())
Input Schema
المعاملات التالية مقبولة في نص الطلب.
الإجمالي: 5مطلوب: 2اختياري: 3
modelstringrequired
The model ID to use for the completion.
Example: "openai/gpt-5.4"
messagesarray[object]required
A list of messages comprising the conversation so far.
rolestringrequired
The role of the message author.
systemuserassistant
contentstring | array[object]required
Plain text, or an array of content parts for multimodal input. Combine a media part with a text part to ask a question about the media. Accepts image (png, jpeg, webp, gif).
max_tokensinteger
The maximum number of tokens to generate in the completion. The maximum value is the model's context length minus the prompt length.
Min: 1
temperaturenumber
Controls the variety of the model's responses. Lower values make output more predictable and deterministic, higher values more diverse and random.
Default: 1Min: 0Max: 2
streamboolean
If set to true, partial message deltas will be sent as server-sent events.
Default: false
مثال على نص الطلب
json
{"model":"openai/gpt-5.4","messages":[{"role":"user","content":[{"type":"image_url","image_url":{"url":"data:image/png;base64,<BASE64_IMAGE_DATA>"}},{"type":"text","text":"Please describe the content of this image"}]}],"max_tokens":64000,"temperature":0.7,"stream":false}
Output Schema
تُرجع API استجابة متوافقة مع ChatCompletion.
idstringrequired
Unique identifier for the completion.
objectstringrequired
Object type, always "chat.completion".
Default: "chat.completion"
createdintegerrequired
Unix timestamp of when the completion was created.
modelstringrequired
The model used for the completion.
choicesarray[object]required
List of completion choices.
indexintegerrequired
Index of the choice.
messageobjectrequired
The generated message.
finish_reasonstringrequired
The reason generation stopped.
stoplengthcontent_filter
usageobjectrequired
Token usage statistics.
prompt_tokensintegerrequired
Number of tokens in the prompt.
completion_tokensintegerrequired
Number of tokens in the completion.
total_tokensintegerrequired
Total tokens used.
مثال على الاستجابة
json
{"id":"chatcmpl-abc123","object":"chat.completion","created":1700000000,"model":"model-name","choices":[{"index":0,"message":{"role":"assistant","content":"Hello! How can I assist you today?"},"finish_reason":"stop"}],"usage":{"prompt_tokens":10,"completion_tokens":20,"total_tokens":30}}
Atlas Cloud Skills
يدمج Atlas Cloud Skills أكثر من 400 نموذج ذكاء اصطناعي مباشرة في مساعد البرمجة بالذكاء الاصطناعي الخاص بك. أمر واحد للتثبيت، ثم استخدم اللغة الطبيعية لتوليد الصور ومقاطع الفيديو والدردشة مع LLM.
العملاء المدعومون
Claude Code
OpenAI Codex
Gemini CLI
Cursor
Windsurf
VS Code
Trae
GitHub Copilot
Cline
Roo Code
Amp
Goose
Replit
40+ العملاء المدعومون
التثبيت
bash
npx skills add AtlasCloudAI/atlas-cloud-skills
إعداد مفتاح API
احصل على مفتاح API الخاص بك من لوحة تحكم Atlas Cloud وعيّنه كمتغير بيئة.
bash
exportATLASCLOUD_API_KEY="your-api-key-here"
الإمكانيات
بمجرد التثبيت، يمكنك استخدام اللغة الطبيعية في مساعد الذكاء الاصطناعي الخاص بك للوصول إلى جميع نماذج Atlas Cloud.
توليد الصورأنشئ صورًا باستخدام نماذج مثل Nano Banana 2 و Z-Image والمزيد.
إنشاء الفيديوأنشئ مقاطع فيديو من نص أو صور باستخدام Kling و Vidu و Veo وغيرها.
دردشة LLMتحدث مع Qwen و DeepSeek ونماذج اللغة الكبيرة الأخرى.
رفع الوسائطارفع الملفات المحلية لتحرير الصور وسير عمل تحويل الصور إلى فيديو.