One API, any catalog id
Developers calling models through AshnaAI use an OpenAI-compatible HTTP API. Base URL: https://api.ashna.ai/v1/api Auth is Authorization: Bearer YOUR_API_KEY. The model field is either a foundation catalog id or a custom agent id. That is how GLM-5.3-Flash, GPT-5.6 Terra, a Claude row, Kimi K3, or Ashna-X1 are called from code—one route, not a URL per vendor.
Official reference: AshnaAI API docs, including model and agent ids. If you do not have a key, create one in Account → API.
Step 1: Get a key
Open Account → API and choose Create key. Send it as a Bearer token. Do not put the key in a public blog, client bundle, or screenshot.
Step 2: List models, then pick an id
GET https://api.ashna.ai/v1/api/models returns the OpenAI list shape. Copy the id string exactly as listed—for Flash that is glm-5.3-flash. The same id is visible in the in-app model picker. Custom agents use the agent id on the same chat-completions path. Endpoint notes: list models.
Step 3: POST chat completions
POST https://api.ashna.ai/v1/api/chat/completions with model, messages, and optional stream, temperature, or max_tokens. To switch from Flash to GPT-5.6 Terra, change model to gpt-5.6-terra. To run a saved agent, pass that agent’s customAgentId as model. Endpoint notes: chat completions.
To try Flash in the product UI instead of curl, open GLM-5.3-Flash in chat. For when to pin Flash versus other rows, start at Pin GLM-5.3-Flash for cost-effective coding.
Try the API now
Create a key in Account → API, then open AshnaAI API docs and run the chat-completions examples with the model id you listed. To use the same key from the editor, follow How to use the AshnaAI API in VS Code.
Mapped to the public AshnaAI HTTP API: base URL https://api.ashna.ai/v1/api, GET /models, POST /chat/completions, model or agent_id, and Account → API keys.
Topics
Related
- AshnaAI for Work
- AshnaAI vs ChatGPT
- AshnaAI vs Claude
- Large Language Model (LLM)
- Foundation Model
- pin glm 5 3 flash for coding
- glm 5 3 flash vs gpt 5 6 terra
- glm 5 3 flash vs gpt 5 6 sol
- glm 5 3 flash vs claude fable 5
- glm 5 3 flash vs claude opus 5
- glm 5 3 flash vs kimi k3
- how to use the ashna ai api in vs code
- how to use the ashna ai api in claude code
- how to use the ashna ai api in cursor
- how to use the ashna ai api in openclaw cline and codex
- cheapest coding ai vs claude opus 5 and gpt 5 6 sol
- reduce llm api cost 95 percent
- how the dynamic model router cuts ai cost
- how to use ashna x1 instead of picking models yourself
- ashna x1 task aware model routing
Try this in AshnaAI. Create a free account.
Found this article insightful?
Share it with fellow builders, founders, and AI practitioners.


