Skip to main content
Already using the OpenAI SDK, Azure OpenAI, or any OpenAI-compatible provider? This guide shows you how to point that existing client at Corti Models, then make your first request. No new SDK, rewrite, or migration.
This is the direct API path for replacing OpenAI or Anthropic in your application. If you want to use Corti Models as the backend for your coding agent (OpenCode, Pi, Crush, or ForgeCode), see Use Corti Models in your coding agent instead.
US projects: corti-s1 model IDs are served by Azure-hosted OpenAI models. See Regions.

Get your API key

Corti Models accepts three credential types as the Bearer token:
  • Project API key — generated from an API Client in the Corti Console. Used in this quickstart.
  • User API key — your personal key from the Corti Models page in the Console.
  • OAuth 2.0 access token — short-lived tokens from the standard Corti client credentials flow. See Authentication.
Grab a project API key from the Corti Console:

Open API Clients in the Corti Console

Sign in, pick a client, then Copy as → Corti Models Service API Key.

Swap your provider

If your code looks like this today:
Change the base URL and API key, and you’re running on Corti:
Everything else in your code — streaming, tool calling, JSON mode, multi-turn conversations, the Responses API — works unchanged. Corti Models is a drop-in replacement.
corti-s1-mini and corti-s1-mini-instant also accept image inputs for OCR, image descriptions, and UI analysis. See Image input on the Models page, or the example below.

Send an image

corti-s1-mini and corti-s1-mini-instant accept image inputs via the standard OpenAI multimodal content format. Encode your image as a base64 data URI and pass it in the messages array:

See which models are available

List the models your credentials can access to confirm the model IDs you can pass:
cURL
See the Models page for the full lineup and pricing.

Next steps

Models

Compare the four model variants by capability, reasoning, speed, and price.

Use Corti Models in your coding agent

Connect OpenCode, ForgeCode, Crush, or Pi to Corti Models with the Corti CLI.

API Reference

Browse the full Corti Models API with interactive examples.

Authentication

How authentication works at Corti.