Send standard HTTP requests to the
/api/v1/chat/completions
endpoint. It works with any language or framework.
You can use the interactive
Request Builder
to generate OpenRouter API requests in the language of your choice.
The examples below use
~openai/gpt-sol-latest
, a
latest alias
that always resolves to the newest model in the OpenAI GPT Sol family, so your code keeps using the freshest version without redeploying. You can substitute any model slug here. Browse the full catalog at
openrouter.ai/models
, or list every available slug programmatically via the
GET /api/v1/models
endpoint.
