API ReferenceAPI Overview
API Reference

API Overview

TokenBay Gateway Business API integration guide

This page provides the core integration information for business APIs, including the service URL, authentication requirements, request conventions, and links to endpoint documentation.

Business APIs use the Base URL: https://api.tokenbay.com.

Conventions

Authentication

All business APIs require a TokenBay Gateway API key.

Send credentials with the Authorization: Bearer <API_KEY> request header, and store API keys securely on the server side.

API Coverage

Text APIs cover Chat Completions, Responses, Messages, Gemini generateContent, and Models for conversation, text generation, and model lookup use cases.

Image and video APIs cover image generation, image editing, video task submission, task lookup, and result download for multimodal generation workflows.

The Error Codes section documents authentication failures, invalid parameters, rate limits, service availability issues, and other response types for troubleshooting and handling.

Endpoints

Use these protocol and capability sections to view parameters, examples, and response details for each API category.

Common Errors

For the error response format, error codes, and troubleshooting guidance, see the Errors section.