Dashboard

API Documentation

Everything you need to integrate API in One into your application.

Authentication

All API requests require a Bearer token in the Authorization header. You can manage your API keys from the dashboard.

http
Authorization: Bearer aio_your_api_key_here

Get Your API Key: Create your free API key from the API Keys page in your dashboard. New accounts receive bonus credits to explore the platform.

Base URL

https://apiin.one/api/v1

API Endpoints

POST/api/v1/images/generations
POST/api/v1/videos/generations
POST/api/v1/audio/music
POST/api/v1/audio/speech
POST/api/v1/chat/completions
POST/api/v1/images/tools/remove-bg
GET/api/v1/tasks/{task_id}

Request Format

All requests use JSON body with a required 'model' field to specify which AI model to use. Additional parameters vary by model.

json
{
  "model": "flux-2",
  "prompt": "A beautiful landscape",
  "...other_params": "..."
}

The 'model' parameter is always required. Visit each model's documentation page for the full list of supported parameters.

Response Format

Asynchronous Tasks (Image, Video, Music, TTS)

For content generation models, the API returns a task ID immediately. Poll the status endpoint to check when the task is complete.

Initial response when task is created.

{
  "id": "task_abc123",
  "status": "pending",
  "model": "kling-3",
  "created_at": "2026-02-24T12:00:00Z"
}

Synchronous Responses (Chat)

Chat completions return the response directly in a single request, following the OpenAI-compatible format.

json
{
  "id": "chatcmpl_xyz",
  "model": "gemini",
  "choices": [
    {
      "message": {
        "role": "assistant",
        "content": "..."
      }
    }
  ],
  "usage": {
    "prompt_tokens": 12,
    "completion_tokens": 156,
    "total_tokens": 168
  },
  "credits_consumed": 2
}

Error Handling

All errors return a consistent JSON format with error code, message, and type.

json
{
  "error": {
    "code": 401,
    "message": "Invalid API key",
    "type": "authentication_error"
  }
}
Status CodeTypeRequiredDescription
400invalid_requestOptionalInvalid request parameters. Check the model documentation for required fields.
401authentication_errorOptionalAPI key is missing, invalid, or revoked.
402insufficient_creditsOptionalYour account has insufficient credits. Purchase more credits to continue.
404not_foundOptionalThe requested resource (task, model) was not found.
429rate_limitOptionalRate limit exceeded. Default is 60 requests/minute.
500server_errorOptionalInternal server error. Please retry after a short delay.

Quick Start

1. Get your API key

Sign up and create an API key from your dashboard. Free accounts include bonus credits.

2. Make your first request

bash
curl -X POST https://apiin.one/api/v1/images/generations \
  -H "Authorization: Bearer aio_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux-2",
    "prompt": "A serene Japanese garden with cherry blossoms"
  }'

3. Check task status (async models)

bash
curl https://apiin.one/api/v1/tasks/task_abc123 \
  -H "Authorization: Bearer aio_your_key"

4. Explore more models

Browse our model directory to find the perfect AI model for your use case.

Browse all models →

API Tester

Test the API directly from your browser:

API PlaygroundPOST