Inference APIs
Integrations/Coding assistant

Use Inference APIs with Aider

Point aider at Inference APIs with two flags or two environment variables.

Settings

SettingValue
Base URLhttps://api.inferenceapis.com/v1 (also /openai/v1)
API keyFrom API Keys; send as Authorization: Bearer …
Chat model idsopenai/gpt-oss-120b, deepseek-ai/DeepSeek-V4-Flash, zai-org/GLM-5.3-Flash, meta-llama/Llama-3.3-70B-Instruct-Turboall models
Audio model idsopenai/whisper-large-v3 (transcription), hexgrad/Kokoro-82M (speech)

Configuration

Command line
aider --openai-api-base https://api.inferenceapis.com/v1 \
      --openai-api-key $INFERENCE_API_KEY \
      --model openai/openai/gpt-oss-120b
Environment
export OPENAI_API_BASE=https://api.inferenceapis.com/v1
export OPENAI_API_KEY=$INFERENCE_API_KEY
aider --model openai/deepseek-ai/DeepSeek-V4-Flash

Verify

aider prints the model name on startup; ask it to "add a docstring to main()".

Gotchas

  • Aider uses LiteLLM underneath, hence the openai/ prefix before our model id.
  • Add --no-show-model-warnings to silence "unknown model" metadata warnings.

If something fails

401 — key missing or wrong · 402 insufficient_balance — add credits on Billing · 404 model_not_found — check the id against the model list (aliases such as gpt-oss-120b work too) · 503 model_unavailable — the model is being enabled. Full details in the API docs.