Skip to main content

Introduction to OpenAI

Welcome to the OpenAI service documentation! Mountsea’s OpenAI service provides GPT Image generation and editing, available in two flavors:

Async Task API

Single unified endpoint /openai/images for text-to-image and edit. Returns a taskId; poll /openai/tasks.

OpenAI Compat (Official SDK)

Drop-in replacement for OpenAI Images. Official openai SDK — set base_url to https://api.mountsea.ai/openai/v1.

Supported Models

Service Overview

Async Task API (/openai/images)

One endpoint. Operation is chosen from the body:
  • No image → text-to-image
  • With image → edit
  • With image + mask → inpaint (transparent mask areas are redrawn)
Async image / mask accept http(s):// URLs only — no base64 or data URL. For base64, use the sync Compat endpoints.
Returns a taskId. Poll GET /openai/tasks?taskId=... to a terminal status. Explore Async API →

OpenAI Compat (Official SDK)

Aligned with OpenAI Images, synchronous:
  • GeneratePOST /openai/v1/images/generations (JSON)
  • EditPOST /openai/v1/images/edits (multipart/form-data)
  • ModelsGET /openai/v1/models
Private extension: if the JSON generate body includes a non-empty image, this service sync-routes to edit. The official SDK does not send that field. Explore Compat →

When to Use Which?

Base URL

Compat SDK base_url:

Authentication