MythIQ

Command Palette

Search for a command to run...

Documentation

Welcome to the MythIQ API documentation.

Overview

MythIQ provides a unified API that gives you access to AI models through a single endpoint, while automatically handling fallbacks and selecting the most cost-effective options.

Get started with just a few lines of code using your preferred SDK or framework.

Want to chat with our docs?

Download an LLM-friendly text file of our full documentation and include it in your system prompt.

API Endpoints

Our API is organized around REST. It accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes and authentication.

Media Generation

Generate images and videos using AI models

Learn more →

Model Information

Get information about available models

Learn more →

Example Usage

Generating an Image

typescript
import OpenAI from 'openai';

  const openai = new OpenAI({
    baseURL: 'https://api.mythiq.ai/v1',
    apiKey: 'YOUR_API_KEY',
  });

  async function generateImage() {
    const response = await openai.images.generate({
      model: 'stability/sdxl',
      prompt: 'A beautiful sunset over the ocean',
      size: '1024x1024',
    });
    
    console.log(response.data);
  }