Integrate 400+ AI models for text, image, video, and audio through one stable API. Save time, cut costs, and scale without limits.
google/gemini-2.5-flash-literole and content1false🔑 API Authentication
All endpoints require authentication using Bearer Token.
Add to request headers:
Authorization: Bearer YOUR_API_KEY
curl https://aibackend.net/api/v1/chat/completions \
-H "Authorization: Bearer sk-abc123def456ghi789" \
-H "Content-Type: application/json" \
-d '{"model": "google/gemini-2.5-flash-lite", "messages": [{"role": "user", "content": "Hello!"}]}'
⚠️ Security Notes:
- Keep your API Key secure and never share it publicly
- Don't commit API keys to version control
- If compromised, regenerate immediately from the management page
- Use environment variables in production:
process.env.AI_API_KEY
Model identifier (provider/model-name).
"openai/chatgpt-4o-latest"
Conversation messages in order.
1Max tokens to generate.
1 <= x <= 8192Sampling temperature.
0 <= x <= 2Nucleus sampling (alternative to temperature).
0 <= x <= 1If true, returns an event stream (SSE).
Arbitrary key/value metadata for your app.
OK
Unique identifier for the completion.
Object type, always 'chat.completion'.
"chat.completion"
Unix timestamp of when the completion was created.
The model used for the completion.
List of completion choices.
Token usage information.