API.Ai-Gate.one logo
API.Ai-Gate.one
Ai-Gate.one
User account page

API Documentation

Text Generation API

Generate text content using advanced AI models.

0.00060$ per 1000 characters(in+out).

Model selection

Model selection depends on the length of the query. We constantly monitor and utilize current models on the market.

Currently, these are:

  • Free : 130K tokens.
  • Any : 2M tokens.

Endpoint

POST /api/v1/text

Request Example

{
  "apiKey": "your-api-key",
  "text": "2+2?",
  "type": "Text"
}

Response

Returns a json

{
"taskId":"request-taskId"
}

Getting Results

Polling Endpoint

GET /api/v1/result/:taskId

Use the task ID returned from the generation request to poll for results.

Example

GET /api/v1/result/abc123-def456-ghi789

Response example

Returns a json

{
"taskId":"request-taskId",
"data":"result text"
}

Image Generation API

Generate images from text descriptions.

0.04$ image.

Model selection

We constantly monitor and utilize current models on the market.

Currently, these are:

  • NanoBananaEdit
  • NanoBanana

Endpoint

POST /api/v1/image

Request Example

{
  "apiKey": "your-api-key",
  "prompt": "Monkey",
  "aspectRatio": "16:9",
  "imageUrls": [
    "https://url-to-image"
  ],
  "type": "Image"
}

Getting Results

Polling Endpoint

GET /api/v1/result/:taskId

Use the task ID returned from the generation request to poll for results.

Request example

GET /api/v1/result/abc123-def456-ghi789

Response example

Returns a json

{
"taskId":"request-taskId",
"url":"https://result-url"
}

Video Generation API

Generate videos using Sora2 and other models.

    Models:
  • Sora2
    • 1080p 10 sec : 0.3$
    • 1080p 15 sec : 0.45$
  • Wan2_6
    • 1080p 5 sec : 0.6$
    • 1080p 10 sec : 1.2$
  • Kling_2_5_Pro
    • 1080p 5 sec : 0.38$
    • 1080p 10 sec : 0.75$
  • Kling2_6
    • 1080p 5 sec : 0.9$
    • 1080p 10 sec : 1.8$
  • Veo3_1Fast
    • 720p 8 sec : 0.36$
  • Veo3_1_Quality
    • 1088p 8 sec : 1.81$
  • Hailuo2_3
    • 768P 6 sec : 0.32$
    • 768P 10 sec : 0.53$
    • 1080P 6 sec : 0.45$
    • 1080P 10 sec : 0.75$

Endpoint

POST /api/v1/video

Request Example

{
  "apiKey": "your-api-key",
  "prompt": "Monkey",
  "modelName": "Sora2",
  "durationSec": "10",
  "resolution": "720p",
  "aspectRatio": "16:9",
  "imageUrls": [
    "https://url-to-image"
  ],
  "type": "Video"
}

Getting Results

Polling Endpoint

GET /api/v1/result/:taskId

Use the task ID returned from the generation request to poll for results.

Request example

GET /api/v1/result/abc123-def456-ghi789

Response example

Returns a json

{
"taskId":"request-taskId",
"url":"https://result-url"
}

Sound Generation API

Generate sound effects and audio.

0.01$ sec.

Endpoint

POST /api/v1/sound

Request Example

{
  "apiKey": "your-api-key",
  "prompt": "wind",
  "durationMs": 1000,
  "isLoop": true,
  "type": "Sound"
}

 *   min durationMs: 500ms
 **  If isLoop true, the sound will loop seamlessly; if false, it will fade in and out smoothly.

Getting Results

Polling Endpoint

GET /api/v1/result/:taskId

Use the task ID returned from the generation request to poll for results.

Request example

GET /api/v1/result/abc123-def456-ghi789

Response example

Returns a json

{
"taskId":"request-taskId",
"url":"https://result-url"
}

Voice Generation API

Generate speech from text with custom parameters.

0.1$ per 1000 characters.

Endpoint

POST /api/v1/voice

Request Example

{
  "apiKey": "your-api-key",
  "name": "Aria",
  "text": "How are you?",
  "stability": 0.5,
  "similarity_boost": 0.75,
  "style": 0.0,
  "speed": 1.0,
  "previousText": "Hi.",
  "nextText": "Why are you silent?",
  "type": "Voice"
}
                                                    
                                                    
stability in 0.0..1.0
similarity_boost in 0.0..1.0
style in 0.0..1.0
speed in 0.7..1.2

Getting Results

Polling Endpoint

GET /api/v1/result/:taskId

Use the task ID returned from the generation request to poll for results.

Request example

GET /api/v1/result/abc123-def456-ghi789

Response example

Returns a json

{
"taskId":"request-taskId",
"url":"https://result-url"
}

Balance API

Endpoint

GET /api/v1/balance/api-key

Getting Results

Request example

GET /api/v1/balance/abc123-def456-ghi789

Response example

Returns a balance

123.4

Price API

Endpoint

GET /api/v1/price

Getting Results

Request example

GET /api/v1/price

Response example

Returns a balance

{
  "text": {
    "cost": "0.00060",
    "unit": "1K characters"
  },
  "image": {
    "cost": "0.04",
    "unit": "Image"
  },
  "video": {
    "Sora2": {
      "1080p": {
        "10": 0.3,
        "15": 0.45
      }
    },
    "Wan2_6": {
      "1080p": {
        "5": 0.6,
        "10": 1.2
      }
    },
    "Kling_2_5_Pro": {
      "1080p": {
        "5": 0.38,
        "10": 0.75
      }
    },
    "Kling2_6": {
      "1080p": {
        "5": 0.9,
        "10": 1.8
      }
    },
    "Veo3_1Fast": {
      "720p": {
        "8": 0.36
      }
    },
    "Veo3_1_Quality": {
      "1088p": {
        "8": 1.81
      }
    },
    "Hailuo2_3": {
      "768P": {
        "6": 0.32,
        "10": 0.53
      },
      "1080P": {
        "6": 0.45,
        "10": 0.75
      }
    }
  },
  "sound": {
    "cost": "0.01",
    "unit": "1 sec"
  },
  "voice": {
    "cost": "0.1",
    "unit": "1K characters"
  }
}