Skip to Content
WikiAPI DocumentationAPI Documentation

API Documentation

Complete reference for MyTokenGate APIs.

OpenAI-Compatible APIs

Chat Completions

The primary API for conversational AI interactions. Supports streaming, function calling, and vision capabilities.

Chat Completions Reference β†’

Anthropic-Compatible APIs

Messages API

Native Claude API for advanced reasoning and tool use. Supports thinking mode and extended context.

Messages Reference β†’

Platform APIs

Models List

Get available models and their capabilities.

Models List Reference β†’

Quick Start

from openai import OpenAI client = OpenAI( api_key="YOUR_API_KEY", base_url="https://gateway.mytokengate.com/v1" ) response = client.chat.completions.create( model="gpt-4o", messages=[{"role": "user", "content": "Hello!"}] ) print(response.choices[0].message.content)

Base URL

https://gateway.mytokengate.com/v1

Authentication

All API requests require a Bearer token in the Authorization header:

Authorization: Bearer YOUR_API_KEY
Last updated on