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.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.