API v1.0 Unified AI Content Generation Platform
Home

One API for AI Content Generation

AiSearch&Generate provides access to 112+ LLM models, 25+ image generation models, 12+ video generation models, music generation, audio transcription, and video translation.

api-example.py
from openai import OpenAI client = OpenAI( api_key="sk-asg-your-key", base_url="https://aisearchandgenerate.com/api/v1" ) response = client.chat.completions.create( model="openai/gpt-4o", messages=[{"role": "user", "content": "Hello!"}] ) print(response.choices[0].message.content)
Base URL https://aisearchandgenerate.com/api
Chat URL https://aisearchandgenerate.com/api/v1
Authentication Bearer sk-asg-...
Format JSON / multipart
๐Ÿ”

Authentication

All API requests require an API key in the Authorization header:

HTTP
Authorization: Bearer sk-asg-your-api-key-here

API keys start with sk-asg- and can be created on your profile page. Keys are shown only once at creation โ€” store them securely.

โฑ๏ธ

Rate Limits

Endpoint Max Requests Period
POST /api/v1/chat/completions301 min
POST /api/v1/messages301 min
POST /api/images/generate101 min
POST /api/videos/generate51 min
POST /api/music/generate51 min
๐Ÿ’ฌ

Chat Requests

POST /api/v1/chat/completions

OpenAI-compatible chat requests. Works with any OpenAI SDK โ€” just change the base URL and key.

Response

JSON
{
  "id": "chatcmpl-abc123",
  "object": "chat.completion",
  "model": "openai/gpt-4o",
  "choices": [{
    "index": 0,
    "message": { "role": "assistant", "content": "Hello!" },
    "finish_reason": "stop"
  }]
}
๐Ÿค–

Models

GET /api/v1/models

List of available chat models. Includes OpenAI, Anthropic, Google, Meta, Mistral and 100+ more.

JSON
{
  "object": "list",
  "data": [{
    "id": "openai/gpt-4o",
    "name": "GPT-4o",
    "context_length": 128000
  }]
}
๐ŸŽจ

Image Generation

POST /api/images/generate

Available Models

Provider Models
Googlegoogle/imagen4, google/imagen4-fast, google/nano-banana
OpenAIgpt-image/1.5-text-to-image, gpt-image-2-text-to-image
Fluxflux-2/pro-text-to-image, flux-kontext-pro
Midjourneymidjourney
๐ŸŽฌ

Video Generation

POST /api/videos/generate

Available Models

Provider Model
Googleveo3, veo3_fast
OpenAIsora
Klingkling-video, kling-motion
Runwayrunway
๐ŸŽต

Music Generation

POST /api/music/generate

Supports Suno V4, V4_5, and V5 models for high-quality music generation.

๐ŸŽ™๏ธ

Audio Transcription

POST /api/audio/transcribe

Supports whisperx and incredibly-fast-whisper models for accurate speech-to-text conversion.

๐ŸŒ

Video Translation

POST /api/translate/generate

Translate video audio and generate subtitles automatically.

๐Ÿ‘ค

Account

Endpoints for getting user profile and usage.

GET /api/user/me

Returns current user profile and linked auth providers.

JSON
{
  "user": {
    "id": 12345,
    "display_name": "John Doe",
    "email": "john@example.com"
  }
}
GET /v1/account/usage

Returns account usage statistics.

๐Ÿ’ฐ

Pricing

The AiSearch&Generate platform is non-commercial and designed for research purposes. The token allocation is determined individually based on the project's needs.

โŒ

Errors

Code Description
400Bad request โ€” missing or invalid parameters
401Unauthorized โ€” invalid or expired API key
404Not found โ€” task not found
502Bad gateway โ€” upstream service unavailable