REST API

Integrate AI into your applications

An OpenAI-compatible REST API to connect your apps to 200+ AI models. One API key, transparent billing, up and running in seconds.

Built for developers

Everything you need to integrate artificial intelligence into your products, friction-free.

OpenAI-compatible

Familiar endpoints and structure inspired by the most widely used standards.

Secure API keys

Create and revoke your keys from your workspace, with usage tracking.

Pay as you go

Only pay for the tokens you consume. No subscription, no commitment.

Real-time usage

Track your costs and calls in the consumption dashboard.

Text & multimedia

Text generation plus image and file reading through a single API.

Quick start

From zero to your first response in three steps.

1

Create an account

Sign up for free to get access to your workspace.

2

Generate an API key

Create a key from the API Keys page of your dashboard.

3

Send your first request

Call /v1/chat/completions with your key for authentication.

4

Track your usage

Review your calls and costs in the Consumption tab.

Authentication

Authenticate your requests with an Authorization header of type Bearer.

Reminder

Your key is shown only once, at creation time. Keep it safe and never share it.

Example
curl https://tigza.ai/v1/chat/completions \
  -H "Authorization: Bearer tigza_XXXXXXXXXX" \
  -H "Content-Type: application/json"

Endpoints

Select an endpoint to view its description and a call example.

GET/v1/models

Lists the models available through the API with their capabilities and prices.

Request example
curl https://tigza.ai/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"
Response example
{
  "object": "list",
  "data": [
    {
      "id": "openai/gpt-4o-mini",
      "object": "model",
      "created": 1736872860,
      "name": "GPT-4o Mini",
      "context_length": 128000,
      "input_modalities": ["text", "image"],
      "output_modalities": ["text"],
      "supported_parameters": ["temperature", "top_p", "max_tokens"],
      "pricing": {
        "prompt": 0.0000209,
        "completion": 0.0001046
      }
    },
    {
      "id": "anthropic/claude-3.5-sonnet",
      "object": "model",
      "created": 1736872860,
      "name": "Claude 3.5 Sonnet",
      "context_length": 200000,
      "input_modalities": ["text"],
      "output_modalities": ["text"],
      "supported_parameters": ["temperature", "top_p", "max_tokens", "stop"],
      "pricing": {
        "prompt": 0.000085,
        "completion": 0.000425
      }
    }
  ]
}

Model fields (GET /v1/models)

namestringDisplay name of the model.
context_lengthintegerMaximum context window in tokens.
input_modalitiesarrayAccepted inputs: text, image, file, audio...
output_modalitiesarrayOutput types produced: text, audio...
supported_parametersarraySampling parameters supported by the model.
pricingobjectPrice per token.
pricing.promptnumberInput price per token.
pricing.completionnumberOutput price per token.

Error codes

Errors are returned in an error object containing a message field.

CodeDescription
400Required field missing (model, messages).
401API key missing, invalid, revoked or expired.
402Insufficient credits or key limit reached.
404Model not found or inactive.
429Too many requests (60/minute).
500Internal server error.

Frequently asked questions

Everything to know before integrating the TIGZA API.

Check the error codes table above: every error response includes a detailed message field. If you need help, reach out via the Contact page.

All the active models available in your workspace. Call GET /v1/models to get the up-to-date list of identifiers.

Only for consumed tokens, at the rate shown on the Pricing page. The cost field in the response reports the exact cost of each call.

Each key is limited to 60 requests per minute. You can create several keys and track consumption in real time.

A key is shown only once at creation. Never send it client-side, and revoke it immediately if it leaks.

Ready to integrate AI?

Create your account, generate your key and send your first request in under five minutes.