
OpenAI-compatible chat
Use the standard chat completions interface with streaming, image input, and optional search tools.

Send multi-turn messages with the same model and gateway as production API calls.
OpenAI-compatible chat/completions request body fields.
| Field | Type | Required |
|---|---|---|
| model | string | Yes |
| messages | { role, content }[] | Yes |
Typical generation previews (actual output varies by prompt).

Core capabilities for this model on the ModKie gateway.

Use the standard chat completions interface with streaming, image input, and optional search tools.
Credits apply per successful chat completion.
Shared API
5 credits / request
≈ $0.03 USD ($0.01 USD/credit at pack rate)
Token-based upstream billing; Kie's example response reports usage credits. Actual cost depends on input and output tokens.
Three steps from API key to your first chat completion.
Create an API key
Create a ModKie API key in Settings.
Send a chat request
Call POST /api/gateway/chat/completions with model gemini-3-8-flash and a messages array.
Read the response
Read choices[0].message.content. Set stream=true for streamed output.
Example chat completions request
curl -X POST https://modkie.com/api/gateway/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider": "kie",
"model": "gemini-3-8-flash",
"messages": [
{
"role": "user",
"content": "Hello, introduce yourself in one sentence."
}
]
}'Read assistant text from choices[0].message.content in the JSON response. Credits apply per successful completion.
ModKie is more than API relay — deploy, fine-tune, and register custom endpoints on the same gateway.
One API key and jobs contract across marketplace and self-hosted models.
Validate payloads in-browser before shipping to production.
Deploy HuggingFace or custom workers and route traffic through ModKie.
Fine-tune vision models and register weights back into the gateway.
Work with our team on model landing, integration, and production rollout.