Skip to main content
Model APIs is RunInfra’s OpenAI-compatible hosted inference API. You use an OpenAI client or curl. Hosted inference requires the Core plan or higher.
1

Get a key

Open Model APIs, create or reveal a workspace API key, and copy it.
2

Set the base URL

Use https://api.runinfra.ai/v1 and store the key in RUNINFRA_GATEWAY_KEY.
3

Call DeepSeek V4 Flash

Use the model id deepseek-v4-flash.
No client request id or idempotency key is required for this first call. Add retry protection when your application needs it.

Next steps

Chat completions

Review the exact forwarded fields.

Streaming

Stream deltas and request the usage chunk.

Idempotent retries

Retry non-streaming calls with a stable key.