Skip to content

API Reference

← Back to contents · 简体中文

The AIDeepIn open API (/ext/v1) lets you use the platform's AI capabilities from your own programs: character chat, knowledge base Q&A, draw tasks, MCP service lists and workflow runs. Everything is self-service — generate an API key in the UI and start calling, no approval needed.

Endpoint Overview

CapabilityEndpointMethodKey type
Character chat/ext/v1/characterPOSTResource-level (bound to a character)
Knowledge base Q&A/ext/v1/knowledgePOSTResource-level (bound to a base)
Create draw task/ext/v1/draw/generationPOSTUser-level
Get draw task/ext/v1/draw/{uuid}GETUser-level
Supported MCP services/ext/v1/mcp/supportedGETUser-level
Active MCP services/ext/v1/mcp/activeGETUser-level
Run workflow/ext/v1/workflow/runPOSTResource-level (bound to a workflow)

Quick Example

bash
curl -N -X POST "http://<host>:9999/ext/v1/character" \
  -H "Authorization: <your API key>" \
  -H "Content-Type: application/json" \
  -d '{"query": "Hi, introduce yourself", "response_mode": "streaming"}'

Start with API Keys & Authentication.

Endpoints

  1. API Keys & Authentication: the two key types, how to get them, auth header and errors
  2. Character Chat: chat as a character (streaming / blocking)
  3. Knowledge Base Q&A: ask a knowledge base
  4. Draw Tasks: create and query text-to-image tasks
  5. MCP Services: fetch the service list
  6. Workflow: trigger a workflow run

The full machine-readable server API is available at Swagger UI (/swagger-ui.html; disabled in production by default).


Previous: Admin Console · Next: API Keys & Authentication