> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# OpenAI API - Access GPT, Image, and Embedding Models via AIsa

> AIsa guide to OpenAI model IDs and endpoints: GPT text models, GPT Image models, and text embeddings through OpenAI-compatible routes.

AIsa gives you access to OpenAI's GPT text models, GPT Image models, and text embedding models with one AIsa API key. The OpenAI SDK works after you set its base URL to `https://api.aisa.one/v1`.

GPT text models use `POST /v1/chat/completions` and `POST /v1/responses`. GPT Image models use `POST /v1/images/generations` and `POST /v1/images/edits`, and embedding models use `POST /v1/embeddings`. The table lists the endpoints each model accepts.

## Supported OpenAI models

| Model ID | Type | Endpoints |
| - | - | - |
| `gpt-4.1-mini` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-4o` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-4o-mini` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-5-nano` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-5-pro` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-5-search-api` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-5.1` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-5.2` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-5.2-pro` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-5.3-codex` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-5.4` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-5.4-mini` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-5.4-nano` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-5.4-pro` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-5.5` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-5.5-pro` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-5.6-luna` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-5.6-sol` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-5.6-terra` | Text | `/v1/chat/completions`, `/v1/responses` |
| `gpt-6-astra` | Text | `/v1/chat/completions`, `/v1/messages`, `/v1/responses` |
| `gpt-6-luna` | Text | `/v1/chat/completions`, `/v1/messages`, `/v1/responses` |
| `gpt-6-sol` | Text | `/v1/chat/completions`, `/v1/messages`, `/v1/responses` |
| `gpt-6.1-sol` | Text | `/v1/chat/completions`, `/v1/messages`, `/v1/responses` |
| `gpt-6.1-terra` | Text | `/v1/chat/completions`, `/v1/messages`, `/v1/responses` |
| `gpt-image-2` | Image | `/v1/images/generations`, `/v1/images/edits` |
| `gpt-image-2.5-flare` | Image | `/v1/images/generations`, `/v1/images/edits` |
| `gpt-image-2.5-sunburst` | Image | `/v1/images/generations`, `/v1/images/edits` |
| `gpt-image-2.6-flare` | Image | `/v1/images/generations`, `/v1/images/edits` |
| `gpt-image-2.6-sunburst` | Image | `/v1/images/generations`, `/v1/images/edits` |
| `gpt-realtime-2.1` | Text | — |
| `text-embedding-3-large` | Embedding | `/v1/embeddings` |
| `text-embedding-3-small` | Embedding | `/v1/embeddings` |

Current prices for these models are on [aisa.one/models](https://aisa.one/models).

## Quickstart

```python theme={null}
from openai import OpenAI

client = OpenAI(api_key="YOUR_AISA_API_KEY", base_url="https://api.aisa.one/v1")

response = client.chat.completions.create(
    model="gpt-5.5",
    messages=[{"role": "user", "content": "Summarize the trade-offs of this database schema."}],
)
print(response.choices[0].message.content)
```

For images and embeddings, see [Generate images](https://aisa.one/docs/api-reference/chat/post_images-generations.md) and [Embeddings](https://aisa.one/docs/api-reference/embeddings/post_embeddings-create.md).

## Next

* [OpenAI / Anthropic SDK](https://aisa.one/docs/get-started/sdk-compatibility.md)
* [Model Catalog](https://aisa.one/docs/guides/models.md)
* [AI model pricing](https://aisa.one/docs/guides/pricing.md#models)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.