Model ids
Every model has an id of the form provider/model-name. Pass it in the model field of POST /chat/completions. Switching provider is a one-line change: the rest of the request and the response format stay identical.
| Model id | Good for |
|---|---|
openai/gpt-6-luna | Fast and inexpensive general model, a good default. |
openai/gpt-6-luna-pro | OpenAI flagship for the hardest tasks. |
anthropic/claude-sonnet-5 | Strong at reasoning, writing and code. |
google/gemini-3.8-flash | Very long context at a low price. |
meta-llama/llama-4-maverick | Open-weight model from Meta. |
deepseek/deepseek-v4-flash | Capable open model at a very low price. |
The catalog changes as providers release and retire models. Always pick ids from the model catalog, where you can filter by provider, context length, price and modality, and copy the id of each model.
Listing models
The public model list is available without an API key. The compact form lives at /api/models, outside the /api/v1 base URL; it returns an array, refreshed daily, with prices already converted to TND. An OpenAI-format list is also served at /api/v1/models (see below).
curl https://promptix.tn/api/models[ { "id": "openai/gpt-6-luna", "n": "OpenAI: GPT-6 Luna", "d": "GPT-6 Luna is OpenAI's fast reasoning model...", "p": "openai", "pr": { "i": 0.387, "o": 1.935 }, "c": 1050000, "f": false, "cr": 1780000000, "sp": ["include_reasoning", "max_completion_tokens", "max_tokens", "reasoning", "reasoning_effort", "response_format", "seed", "structured_outputs"] }]| Field | Description |
|---|---|
id | Model id to pass as model in requests. |
n | Display name. |
d | Description (optional). |
p | Provider, the part of the id before the slash. |
pr.i / pr.o | Input (prompt) and output (completion) price in TND per 1 million tokens. |
c | Context length in tokens (prompt plus completion). |
f | true for free models. |
cr | Date the model was added, as a Unix timestamp. |
sp | Some of the request parameters the model supports (up to eight). |
models.list() in the OpenAI SDKs
GET /api/v1/models returns the same catalog in the OpenAI list format (id, owned_by, context_length, pricing_tnd_per_1m, supported_parameters), so client.models.list() works out of the box with the OpenAI SDKs. It needs no API key either.
Prices and cost
Prices are in TND per million tokens, with separate rates for input (your prompt, including the conversation history and system message) and output (the generated answer). Output tokens usually cost more.
cost (TND) = prompt_tokens × input price / 1,000,000 + completion_tokens × output price / 1,000,000 example: 2,000 prompt tokens and 500 completion tokens on openai/gpt-6-luna = 2,000 × 0.387 / 1,000,000 + 500 × 1.935 / 1,000,000 = 0.000774 + 0.000968 ≈ 0.002 TNDUse the calculator on the pricing page to estimate a workload. The exact amount charged for each request is available afterwards; see Billing and credits.
Choosing a model
- Start small. Small models such as
openai/gpt-6-lunahandle most extraction, classification and chat tasks at a fraction of the price of flagship models. - Check the context length (
c) against your longest prompt plusmax_tokens. - Check capabilities. Tool calling, JSON output and image input are not available on every model; the catalog lists supported parameters and modalities.
- Free models (
f: true) cost nothing but have tighter rate limits upstream and can be slower. They suit prototypes more than production. - Compare on your own data. Try several models in the playground, which shows tokens and cost for each message.