Skip to main content
For applications using the native Gemini format, connect to https://api.apione.ai/v1beta and select a model supporting that protocol. Applications using OpenAI format should follow Chat Completions.

Minimal request

Set APIONE_API_KEY and APIONE_MODEL using the quickstart. Use an available model ID. This example follows the basic Gemini text format:
The model goes in the URL. Messages use contents[], with text in parts[].text. Do not add another models/ prefix. Read text from candidates[].content.parts[].text. Candidates may contain no text; inspect finish reasons and errors too.

Addresses and compatibility

Make sure /v1beta appears only once in the final path. The APIONE endpoint list also includes :streamGenerateContent. Pass a non-streaming text test first, then configure streaming and other parameters based on the client and model capabilities. For Gemini CLI setup, see the client guide. If you run into problems, record the request ID and field names returned, then follow troubleshooting. Sources: APIONE endpoints and Google generateContent.