مصادقة واحدة لكل مزود
مفتاح RunAPI واحد يفتح الوصول إلى الكتالوج بالكامل. لا حسابات منفصلة، ولا تدوير مفاتيح لكل تكامل.
It looks like you may prefer a different language. Switch anytime.
استخدم Gemini API عبر RunAPI مع model skill ومصادقة موحدة وتسعير حسب الاستخدام.
# 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": "gemini-3.7-flash",
"messages": [
{
"role": "user",
"content": "Analyze this codebase and suggest three performance improvements with before/after examples."
}
]
}'
from openai import OpenAI
client = OpenAI(
base_url="https://runapi.ai/v1",
api_key="your-runapi-key"
)
response = client.chat.completions.create(
model="gemini-3.7-flash",
messages=[{"role": "user", "content": "Analyze this codebase and suggest three performance improvements with before/after examples."}]
)
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: "gemini-3.7-flash",
messages: [{ role: "user", content: "Analyze this codebase and suggest three performance improvements with before/after examples." }]
});
Gemini is Google's multimodal large language model family supporting text, image, audio, and code understanding. Available in Flash and Pro variants, it handles tasks from quick summarization to deep reasoning and complex coding.
| Endpoint | Protocol |
|---|---|
POST /v1/chat/completions | OpenAI compatible |
POST /v1/responses | OpenAI Responses |
POST /v1/messages | Anthropic compatible |
POST /v1beta/models/{model}:generateContent | Gemini generateContent |
POST /v1beta/models/{model}:streamGenerateContent | Gemini streamGenerateContent |
| المتغير | الفوترة | الأسعار | |
|---|---|---|---|
| gemini-2.5-flash | 1K tokens | Input $0.30 / 1M tokens | Output $2.50 / 1M tokens | عرض → |
| gemini-2.5-pro | 1K tokens | Input $1.25-$2.50 / 1M tokens | Output $10.00-$15.00 / 1M tokens | عرض → |
| gemini-3-flash-preview | 1K tokens | Input $0.50 / 1M tokens | Output $3.00 / 1M tokens · Input $0.30 / 1M tokens | Output $1.80 / 1M tokens | عرض → |
| gemini-3.1-pro-preview | 1K tokens | Input $1.00-$2.00 / 1M tokens | Output $7.00-$10.50 / 1M tokens | عرض → |
| gemini-3.5-flash | 1K tokens | Input $1.50 / 1M tokens | Output $9.00 / 1M tokens · Input $0.90 / 1M tokens | Output $5.40 / 1M tokens | عرض → |
| gemini-3.6-flash | 1K tokens | Input $1.50 / 1M tokens | Output $7.50 / 1M tokens · Input $0.90 / 1M tokens | Output $4.50 / 1M tokens | عرض → |
| gemini-3.7-flash | 1K tokens | Input $0.45 / 1M tokens | Output $2.25 / 1M tokens | عرض → |
| Endpoint | الدقة | المدة | السعر | |
|---|---|---|---|---|
| chat_completion | — | — | Input $0.30 / 1M tokens | Output $2.50 / 1M tokens |
الأسعار المعروضة للمتغير gemini-2.5-flash. المتغيرات الأخرى لها أسعار endpoint خاصة بها.
اختر النموذج والإصدار المناسبين لنوع المخرجات ومستوى الجودة وزمن الاستجابة المستهدف.
اضبط مفتاح RunAPI وثبّت model skill في مساحة عمل الكود.
استخدم تعليمات المهارة لإضافة ميزة النموذج داخل تطبيقك.
استعلم عبر task ID أو استخدم البث عند دعمه أو عالج webhook callback.
Gemini is Google's flagship multimodal LLM, available in Flash (fast) and Pro (frontier reasoning) variants. Through RunAPI, all Gemini models share the same API shape and billing.
مفتاح RunAPI واحد يفتح الوصول إلى الكتالوج بالكامل. لا حسابات منفصلة، ولا تدوير مفاتيح لكل تكامل.
تسعير لكل استدعاء بالدولار الأمريكي، ويُفوتر شهريًا. لا تُحتسب التوليدات الفاشلة.
تأتي الـschemas المعرّفة وملاحظات الإعداد داخل model skill حتى يبدأ التنفيذ من العقد الصحيح.
Up to 1 million tokens across all variants. This handles entire codebases, long documents, and multi-turn conversations without truncation.
Text, images, audio, and video. You can pass multimodal inputs in a single request for cross-modal reasoning.
Gemini can ground responses in real-time Google Search results, reducing hallucination for factual and time-sensitive queries.
Flash is optimized for speed and cost — ideal for high-volume tasks. Pro delivers deeper reasoning and is better for complex multi-step analysis.
Yes — Gemini supports structured function calling with typed JSON schemas, making it suitable for agentic workflows and tool use.
اختر أرخص نسخة تفي بمعيار الجودة لديك. يبدأ معظم الفرق بالنسخة السريعة ثم ينتقلون إلى pro للإنتاج.