{"protocolVersion":"0.2.5","name":"1xai","description":"1xAi is a multi-provider AI API proxy for customers in Iran. It exposes an OpenAI-compatible REST API at /v1 — covering OpenAI, Anthropic (Claude) and Google (Gemini) models — with Persian-language billing, documentation and support.","url":"https://1xai.ir/docs","documentationUrl":"https://1xai.ir/docs","iconUrl":"https://1xai.ir/favicon.svg","version":"1.0.0","provider":{"organization":"1xAi","url":"https://1xai.ir"},"defaultInputModes":["text"],"defaultOutputModes":["text"],"supportedInterfaces":[{"url":"https://1xai.ir/v1","transport":"HTTP"},{"url":"https://1xai.ir/anthropic","transport":"HTTP"},{"url":"https://1xai.ir/gemini","transport":"HTTP"}],"preferredTransport":"HTTP","capabilities":{"streaming":true,"pushNotifications":false,"stateTransitionHistory":false},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"1xAi-issued bearer key (prefix: 1xai-). Mint from the dashboard."}},"security":[{"bearer":[]}],"skills":[{"id":"chat-completions","name":"Chat completions","description":"Generate chat replies via the OpenAI-compatible chat.completions and responses APIs at /v1. The model name selects the provider: claude-* routes to Anthropic, gemini-*/gemma-* to Google, everything else to OpenAI. For provider-specific features (Anthropic cache_control/thinking/citations, Gemini cachedContents) use the native skills below.","tags":["llm","openai","anthropic","claude","gemini","chat"],"examples":["Summarise this article in Persian.","Write a SQL query that finds users active in the last 7 days."],"inputModes":["text"],"outputModes":["text"]},{"id":"anthropic-native-messages","name":"Anthropic Messages (native)","description":"Native Anthropic Messages API passthrough at /anthropic/v1/messages. Preserves the full Anthropic surface — cache_control prompt caching with accurate cache_read_input_tokens / cache_creation_input_tokens accounting, `thinking` budgets, citations, server-side tool use — features Anthropic's OpenAI-compatible endpoint silently drops. Point the official @anthropic-ai/sdk at the /anthropic base URL.","tags":["llm","anthropic","claude","native","messages","caching","thinking"],"inputModes":["text"],"outputModes":["text"]},{"id":"gemini-native-generate","name":"Gemini generateContent (native)","description":"Native Google Gemini passthrough at /gemini/v1beta/models/{model}:generateContent and :streamGenerateContent. Required for the full generationConfig surface and the cachedContents resource (Gemini's stateful context cache) — neither is reachable via the OpenAI-compatible path. Point the official @google/genai SDK at the /gemini base URL.","tags":["llm","google","gemini","native","generate","cached-contents","stream"],"inputModes":["text"],"outputModes":["text"]},{"id":"embeddings","name":"Embeddings","description":"Compute OpenAI text-embedding-3-* vectors for semantic search and clustering. Embeddings are OpenAI-only.","tags":["llm","openai","embeddings"],"inputModes":["text"],"outputModes":["data"]},{"id":"speech-to-text","name":"Speech to text","description":"Transcribe audio using OpenAI Whisper / gpt-4o-transcribe. Transcription is OpenAI-only.","tags":["audio","openai","whisper","transcription"],"inputModes":["audio"],"outputModes":["text"]},{"id":"text-to-speech","name":"Text to speech","description":"Synthesise speech using OpenAI's audio.speech models. TTS is OpenAI-only.","tags":["audio","openai","tts"],"inputModes":["text"],"outputModes":["audio"]},{"id":"image-generation","name":"Image generation","description":"Generate images with OpenAI's images.generations endpoint (DALL-E, gpt-image-1). Image generation is OpenAI-only.","tags":["image","openai","dalle"],"inputModes":["text"],"outputModes":["image"]}]}