> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tapapi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 高级图片入口 · 当前有边界

> Tapapi 预留的高级图片入口。当前公开稳定能力仍以文生图为主；image_urls、webhook 暂不开放，传入会在计费前被拦截。



## OpenAPI

````yaml /relay.json post /v1/tapapi/images/advanced
openapi: 3.0.1
info:
  title: Tapapi 图片 API
  description: 一个 Key 跑全模型 · 当前公开主线为 OpenAI-compatible 文生图
  version: 1.0.0
servers: []
security:
  - BearerAuth: []
tags:
  - name: 获取模型列表
  - name: OpenAI格式(Chat)
  - name: OpenAI格式(Responses)
  - name: 图片生成
  - name: 图片生成/OpenAI兼容格式
  - name: 图片生成/Qwen千问
  - name: 视频生成
  - name: 视频生成/Sora兼容格式
  - name: 视频生成/Kling格式
  - name: 视频生成/即梦格式
  - name: Claude格式(Messages)
  - name: Gemini格式
  - name: OpenAI格式(Embeddings)
  - name: 文本补全(Completions)
  - name: OpenAI音频(Audio)
  - name: 重排序(Rerank)
  - name: Moderations
  - name: Realtime
  - name: 未实现
  - name: 未实现/Fine-tunes
  - name: 未实现/Files
paths:
  /v1/tapapi/images/advanced:
    post:
      tags:
        - Tapapi 路径 2 · 高级图像 API
      summary: 高级图片入口 · 当前有边界
      description: Tapapi 预留的高级图片入口。当前公开稳定能力仍以文生图为主；image_urls、webhook 暂不开放，传入会在计费前被拦截。
      operationId: createTapapiAdvancedImage
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  description: 模型名
                  example: z-image-turbo
                prompt:
                  type: string
                  description: 图片生成提示词
                'n':
                  type: integer
                  default: 1
                  minimum: 1
                  description: 生成张数，默认 1；不同模型支持范围不同
                size:
                  type: string
                  description: 图片尺寸，例如 1024x1024；不要写成 1024×1024
                quality:
                  type: string
                  description: 质量档位，仅部分模型支持
                response_format:
                  type: string
                  enum:
                    - url
                    - b64_json
                  default: url
                  description: 返回 URL 或 base64
                output_format:
                  type: string
                  enum:
                    - png
                    - jpeg
                    - webp
                  description: 输出图片格式，仅部分模型支持
                extra_fields:
                  type: object
                  description: 条件私有字段；仅在模型详情明确说明时使用
                  additionalProperties: true
              required:
                - model
                - prompt
            examples:
              minimal:
                summary: 纯文生图高级入口
                value:
                  model: z-image-turbo
                  prompt: a red apple on a wooden table
                  size: 1024x1024
                  response_format: url
              conditionalPrivateFields:
                summary: 条件私有字段 · 仅模型详情明确说明时使用
                value:
                  model: flux-1.1-pro
                  prompt: a futuristic city skyline at sunset
                  size: 1024x1024
                  extra_fields:
                    guidance_scale: 7.5
      responses:
        '200':
          description: 成功生成图片
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageResponse'
        '400':
          description: 请求字段当前不开放，例如 image_urls 或 webhook
      deprecated: false
      security:
        - BearerAuth: []
components:
  schemas:
    ImageResponse:
      type: object
      properties:
        created:
          type: integer
        data:
          type: array
          items:
            type: object
            properties:
              url:
                type: string
              b64_json:
                type: string
              revised_prompt:
                type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |
        使用 Bearer Token 认证。
        格式: `Authorization: Bearer sk-xxxxxx`

````