API Reference

AI Nexus model API reference, generated from OpenAPI, with an in-page playground.

Overview

The AI Nexus model API is compatible with the OpenAI and Anthropic formats. This reference covers four endpoints; each endpoint page has parameter docs, request samples in several languages and a playground.

ItemValue
Base URLhttps://ai.myaiexp.com
AuthenticationAuthorization: Bearer sk-xxxx (create keys on the API Keys page of the console); /v1/messages also accepts x-api-key
FormatContent-Type: application/json

Playground

The playground on each endpoint page sends real requests: put your API key (starts with sk-) in Authorization, edit the body and click Send. Requests go straight from your browser to https://ai.myaiexp.com and are billed, so use a key with a small quota.

Endpoints and models

EndpointDescription
POST /v1/chat/completionsOpenAI-compatible chat completions
POST /v1/messagesClaude-native Messages
POST /v1/responsesOpenAI Responses
GET /v1/modelsModels your key can use

Endpoint support varies by model: /v1/chat/completions is the general OpenAI-compatible endpoint; /v1/messages works with models that support the Claude-native format; /v1/responses works with models that support the Responses API. The available models and the endpoints each one supports are listed on the model square.

Available models and prices are on the models & pricing page. Prices are synced daily from each vendor's official list price (USD per 1M tokens).

Not covered

This reference covers only the four endpoints above. Image, video and audio generation, embeddings and rerank are out of scope.

See Errors for error shapes and how to handle them.

This service is provided for learning and research purposes only. Please follow each model provider's usage policies.

On this page