TheaimartAIx DOCS
Home Get API key

API reference

The AIx HTTP API is OpenAI-compatible. This section is the precise reference; for task-oriented walkthroughs see the Guides.

Base URL

https://api.aix.theaimart.co/v1

Authentication

Send your key as a bearer token (SDKs do this automatically). X-API-Key is also accepted for direct HTTP integrations.

Authorization: Bearer tam_your_key_here

See Authentication.

Conventions

  • All request/response bodies are JSON (except audio/speech which returns raw audio bytes, and audio/transcriptions which takes multipart form-data).
  • Timestamps are Unix seconds. Money is USD. 1 credit = $1.
  • Unknown JSON fields are ignored. Use only documented fields when you need portable, forward-compatible behavior.
  • Model execution details stay behind AIx; application code receives the documented response shape.

Endpoints

MethodPathPurpose
POST/v1/chat/completionsChat (text, tools, vision, streaming)
POST/v1/messagesMessages (Anthropic-compatible clients)
POST/v1/embeddingsEmbeddings
POST/v1/images/generationsImages
POST/v1/audio/speechText-to-speech (binary)
POST/v1/audio/transcriptionsTranscription (multipart)
GET/v1/modelsModels

Versioning

The surface is versioned by the /v1 path prefix. Changes are additive — new optional fields and models may appear. Clients should ignore unknown response fields and fetch model ids from GET /v1/models instead of hardcoding availability.

OpenAPI

A machine-readable spec is available for client codegen and Postman/Insomnia import:

Download openapi.json →

Errors & limits

Last updated July 18, 2026

Was this page helpful?