It looks like you may prefer a different language. Switch anytime.

Text OpenAI

GPT API

استخدم GPT API عبر RunAPI مع model skill ومصادقة موحدة وتسعير حسب الاستخدام.

runapi.ai
# Base URL
https://runapi.ai

# Endpoints
POST /v1/chat/completions
POST /v1/responses
POST /v1/messages
POST /v1beta/models/{model}:generateContent
POST /v1beta/models/{model}:streamGenerateContent
curl https://runapi.ai/v1/chat/completions \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-6-astra",
  "messages": [
    {
      "role": "user",
      "content": "Analyze this quarterly revenue data and produce a summary with key trends, anomalies, and three recommendations."
    }
  ]
}'
from openai import OpenAI

client = OpenAI(
    base_url="https://runapi.ai/v1",
    api_key="your-runapi-key"
)

response = client.chat.completions.create(
    model="gpt-6-astra",
    messages=[{"role": "user", "content": "Analyze this quarterly revenue data and produce a summary with key trends, anomalies, and three recommendations."}]
)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://runapi.ai/v1",
  apiKey: "your-runapi-key"
});

const response = await client.chat.completions.create({
  model: "gpt-6-astra",
  messages: [{ role: "user", content: "Analyze this quarterly revenue data and produce a summary with key trends, anomalies, and three recommendations." }]
});
https://runapi.ai 5 endpoints
OVERVIEW

حول GPT

GPT is OpenAI's flagship large language model series, with the GPT-5 family delivering state-of-the-art performance in chat, code generation, and multi-step reasoning. Available in multiple capability tiers.

المزوّد
OpenAI
الوسيط
Text

نقاط نهاية API لـ GPT

EndpointProtocol
POST /v1/chat/completionsOpenAI compatible
POST /v1/responsesOpenAI Responses
POST /v1/messagesAnthropic compatible
POST /v1beta/models/{model}:generateContentGemini generateContent
POST /v1beta/models/{model}:streamGenerateContentGemini streamGenerateContent

قارن جميع إصدارات API

المتغير الفوترة الأسعار
codex-auto-review 1K tokens Input $2.50 / 1M tokens | Output $15.00 / 1M tokens عرض →
gpt-5.2 1K tokens Input $0.88 / 1M tokens | Output $7.00 / 1M tokens · Input $1.75 / 1M tokens | Output $14.00 / 1M tokens عرض →
gpt-5.2-pro 1K tokens Input $10.50 / 1M tokens | Output $84.00 / 1M tokens عرض →
gpt-5.3-codex 1K tokens Input $1.05 / 1M tokens | Output $8.40 / 1M tokens عرض →
gpt-5.3-codex-spark 1K tokens Input $1.05 / 1M tokens | Output $8.40 / 1M tokens عرض →
gpt-5.4 1K tokens Input $2.50 / 1M tokens | Output $15.00 / 1M tokens عرض →
gpt-5.4-mini 1K tokens Input $0.45 / 1M tokens | Output $2.70 / 1M tokens عرض →
gpt-5.4-nano 1K tokens Input $0.10 / 1M tokens | Output $0.63 / 1M tokens عرض →
gpt-5.4-pro 1K tokens Input $30.00 / 1M tokens | Output $180.00 / 1M tokens عرض →
gpt-5.5 1K tokens Input $5.00 / 1M tokens | Output $30.00 / 1M tokens عرض →
gpt-5.5-pro 1K tokens Input $30.00 / 1M tokens | Output $180.00 / 1M tokens عرض →
gpt-5.6-luna 1K tokens Input $0.20-$0.40 / 1M tokens | Output $1.20-$1.80 / 1M tokens عرض →
gpt-5.6-sol 1K tokens Input $5.00 / 1M tokens | Output $30.00 / 1M tokens عرض →
gpt-5.6-terra 1K tokens Input $2.00-$4.00 / 1M tokens | Output $12.00-$18.00 / 1M tokens عرض →
gpt-6-astra 1K tokens Input $5.00-$10.00 / 1M tokens | Output $25.00-$37.50 / 1M tokens عرض →
PRICING

أسعار GPT

Endpoint الدقة المدة السعر
chat_completion Input $2.50 / 1M tokens | Output $15.00 / 1M tokens
response Input $2.50 / 1M tokens | Output $15.00 / 1M tokens

الأسعار المعروضة للمتغير codex-auto-review. المتغيرات الأخرى لها أسعار endpoint خاصة بها.

تكامل الوكلاء

شغّل GPT من وكيل

كيف يعمل

ابدأ مع GPT

  1. اختر النموذج

    اختر النموذج والإصدار المناسبين لنوع المخرجات ومستوى الجودة وزمن الاستجابة المستهدف.

  2. الإعداد

    اضبط مفتاح RunAPI وثبّت model skill في مساحة عمل الكود.

  3. التنفيذ

    استخدم تعليمات المهارة لإضافة ميزة النموذج داخل تطبيقك.

  4. الاستلام

    استعلم عبر task ID أو استخدم البث عند دعمه أو عالج webhook callback.

CONTEXT

ما هي GPT API؟

GPT is OpenAI's frontier LLM family, spanning standard and mini variants for different cost-performance trade-offs. Through RunAPI, all GPT models share the same API shape and billing.

المزوّد
OpenAI
عرض الكل →
الوسيط
Text
تصفّح النماذج →

لماذا تستخدم GPT API عبر RunAPI

مصادقة واحدة لكل مزود

مفتاح RunAPI واحد يفتح الوصول إلى الكتالوج بالكامل. لا حسابات منفصلة، ولا تدوير مفاتيح لكل تكامل.

تسعير وفوترة موحّدان

تسعير لكل استدعاء بالدولار الأمريكي، ويُفوتر شهريًا. لا تُحتسب التوليدات الفاشلة.

Skill مع schemas

تأتي الـschemas المعرّفة وملاحظات الإعداد داخل model skill حتى يبدأ التنفيذ من العقد الصحيح.

أسئلة حول GPT

Which GPT variant should I choose?

GPT-5.6 — the sol, terra, and luna tiers — is the current flagship generation. GPT-5.4 remains a strong choice for coding and agentic workflows, GPT-5.5 for long-horizon autonomous tasks, and GPT-5.4-mini is the cost-effective option for simpler tasks.

Does GPT support tool use and function calling?

Yes — all GPT-5 variants support structured function calling with JSON schemas, enabling agentic tool-use workflows.

What is Thinking mode?

Thinking mode lets GPT reason step-by-step before responding. Available on GPT-5.2 and above, it improves accuracy on complex reasoning tasks.

What is the context window size?

Context windows vary by variant. GPT-5.4 and above support large context windows suitable for multi-file code analysis and long documents.

What is GPT-5.3 Codex optimized for?

Codex is specialized for multi-file code generation, editing, and analysis — purpose-built for developer workflows and CI/CD integration.

أي نسخة ينبغي أن أبدأ بها؟

اختر أرخص نسخة تفي بمعيار الجودة لديك. يبدأ معظم الفرق بالنسخة السريعة ثم ينتقلون إلى pro للإنتاج.

نماذج مشابهة

إذا أعجبتك GPT API، فجرّب هذه الخيارات

ابدأ البناء باستخدام GPT API.