Connect to AI
AI & Machine Learning API Key

GenAI APIs REST API

Unified generative AI model access and orchestration

GenAI APIs provide a unified interface for accessing and orchestrating multiple generative AI models across text, image, and audio generation. Developers use GenAI to standardize model interactions, implement fallback strategies, and manage rate limits across different AI providers with a single API integration.

Base URL https://api.genai.rest/v1

API Endpoints

MethodEndpointDescription
POST/completionsGenerate text completions using specified AI models with streaming support
POST/chat/completionsGenerate chat-based completions with conversation history and system prompts
POST/embeddingsGenerate vector embeddings for text inputs using various embedding models
POST/images/generateGenerate images from text prompts using diffusion and other image generation models
POST/images/editEdit existing images using AI models with inpainting and outpainting capabilities
POST/audio/transcribeTranscribe audio files to text using speech recognition models
POST/audio/translateTranslate audio from one language to another with transcription
POST/audio/speechGenerate speech audio from text input using text-to-speech models
GET/modelsList all available AI models across providers with capabilities and pricing
GET/models/{model_id}Retrieve detailed information about a specific AI model
POST/fine-tuning/jobsCreate a fine-tuning job to customize models with training data
GET/fine-tuning/jobs/{job_id}Get the status and details of a fine-tuning job
GET/usageRetrieve usage statistics and token consumption across all API calls
POST/moderateCheck content for safety and policy violations using moderation models
POST/chains/executeExecute multi-step AI workflows with chained model invocations

Code Examples

curl -X POST https://api.genai.rest/v1/chat/completions \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "gpt-4",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Explain quantum computing in simple terms."}
    ],
    "temperature": 0.7,
    "max_tokens": 500
  }'

Use GenAI APIs from Claude / Cursor / ChatGPT

Get a hosted MCP endpoint for GenAI APIs. Paste your GenAI APIs API key, copy back one URL, drop it into Claude Desktop, Cursor, or any AI client that supports remote MCP. Your AI calls GenAI APIs directly with your credentials — no local install, works on mobile.

generate_completion Generate text completions with automatic model selection and fallback handling for robust AI responses
create_embeddings Convert text into vector embeddings for semantic search, clustering, and similarity comparisons
generate_image Create images from text descriptions using the most appropriate available image generation model
transcribe_audio Transcribe audio files to text with automatic language detection and speaker diarization support
execute_ai_chain Run multi-step AI workflows that chain multiple model calls with conditional logic and data transformations

Connect in 60 seconds

Paste your GenAI APIs key → get an MCP URL → paste into Claude/Cursor. Hosted by IOX, encrypted at rest.

Connect GenAI APIs to your AI →

Related APIs