Skip to main content
DeepInfra serves open and proxied models through an OpenAI-compatible API at https://api.deepinfra.com/v1/openai. GoModel routes these endpoints to it unchanged:

Configure

Create an API key in the DeepInfra dashboard and set:
Or in config.yaml:
Override the base URL or pin a model list only when you need to:

Models

GoModel reads DeepInfra’s live /models listing, including each model’s kind (chat, embedding, image, speech, transcription), context length, reasoning and vision tags, and prices. Video generation models are left out because GoModel has no video endpoint for DeepInfra. Model IDs contain a slash; use them verbatim, or prefix the provider name to pin the route:
Both reasoning_effort and reasoning: {"effort": ...} are honored by DeepInfra’s reasoning models, and none turns thinking off on hybrid models such as Qwen3.

Behavior notes

  • Responses are stateless. DeepInfra keeps no responses, so store: true has no upstream effect. With a GoModel response store configured, previous_response_id chains still work: the gateway replays the stored history before dispatch. Without one, DeepInfra rejects previous_response_id and conversation with an invalid-request error.
  • Structured Responses output goes through chat. DeepInfra’s native Responses endpoint rejects every text setting (text.format, text.verbosity), so GoModel serves those requests through chat completions, where json_schema and json_object work.
  • Speech defaults to MP3. DeepInfra answers WAV when response_format is omitted; GoModel sends OpenAI’s default (mp3) instead. Set response_format explicitly to get another format.
  • Image pricing is per image unit. DeepInfra lists image prices per image unit, and GoModel records that rate as the per-image price. Cost tracking is approximate for models DeepInfra bills by size or step count.
  • Passthrough is opt-in. Add deepinfra to ENABLED_PASSTHROUGH_PROVIDERS to expose /p/deepinfra/..., which forwards any path under the base URL with the gateway’s DeepInfra key.
Last modified on October 24, 2026