Developer Reference

API Endpoints

Multi-format REST API endpoints for chat, responses, image, video, embeddings, and related workflows through one host.

Compatibility

Core Endpoint Paths

Browse endpoints by capability and combine any path with the selected host.

Core API

Core Generation

Chat Completions and Responses endpoints for text generation, streaming, and tool use.

/v1/chat/completions/v1/responses
Media API

Media Generation

Image generation, image editing, and video submission endpoints for content workflows.

/v1/images/generations/v1/images/edits/v1/videos
Extended API

Extended Protocols

Embeddings, Messages, and generateContent protocol endpoints for extended integration needs.

/v1/embeddings/v1/messages/v1beta/models/{model}:generateContent
Hosts

Endpoint Hosts

Choose the endpoint that best fits your network and latency requirements.

api.wisgate.cn
Recommended

ELB optimized ¡ China ¡ Multi-server cluster ¡ High-performance optimized ¡ Non-streaming timeout: 120s

Reference

API Methods

Complete reference of supported API endpoints grouped by capability.

Core Generation
2 endpoints
POST
Chat Completions

Generate conversational text completions with context and tool use support.

POST
Responses

Stateless API responses with flexible output formatting.

Media Generation
4 endpoints
POST
Embeddings

Generate high-dimensional vector embeddings for semantic search and RAG.

POST
Image Generation

Create images from text prompts.

POST
Image Edit

Edit existing images with text instructions or mask-based inpainting.

POST
Videos

Submit video generation jobs for text-to-video and image-to-video workflows.

Extended Protocols
2 endpoints
POST
Messages

Send messages through the Messages protocol with tool use and streaming support.

POST
Generate Content

Generate content through the generateContent protocol format.

Click any endpoint to copy full URL with host

Quick Start

Quick Start

Make your first API call in under a minute. Copy the example, add your key, and go.

import requests

response = requests.post(
    "https://api.wisgate.cn/v1/chat/completions",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
    },
    json={
        "model": "deepseek-r1",
        "messages": [
            {"role": "user", "content": "äŊ åĨŊīŧ"}
        ],
    },
)

print(response.json())

Ready to Build?

Get your API key and start integrating in minutes. No credit card required for free models.