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

# 图片超分

<Note>
  注意：目前仅 `jimeng-image-clarify-v3` 模型支持图片超分，其他模型不支持。
</Note>

图片超分 API 调用示例可以参考这里：[图片超分](https://docs.geekai.co/cn/docs/image/clarify)。

### 请求/响应参数明细


## OpenAPI

````yaml openapi.yaml POST /images/clarify
openapi: 3.1.0
info:
  title: 极客智坊 API文档
  description: 极客智坊 API 消息接口规范文档
  version: 1.0.0
servers:
  - url: https://geekai.co/api/v1
    description: 国内代理入口
  - url: https://geekai.dev/api/v1
    description: 海外代理入口
security:
  - bearerAuth: []
  - apiKeyAuth: []
paths:
  /images/clarify:
    post:
      tags:
        - ImageClarify
      summary: 图片超分接口
      description: 对输入的单张或多张图片进行超分辨率x2处理，从而让图片分辨率更高
      operationId: clarifyImage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - image
              properties:
                model:
                  type: string
                  description: 图片超分模型
                  example: jimeng-image-clarify-v3
                image:
                  oneOf:
                    - type: string
                      description: 单张图片URL/Base64编码数据
                    - type: array
                      description: 多张图片URL/Base64编码数组列表
                      items:
                        type: string
                quality:
                  type: string
                  description: 图片质量，支持 low/medium/high 三个配置项，默认为medium
                  example: medium
                  default: medium
                response_format:
                  type: string
                  description: 图片响应格式，支持 url/b64_json 两种格式，默认为url
                  enum:
                    - url
                    - b64_json
                  default: url
                retries:
                  type: integer
                  description: 自动重试次数，默认0，表示失败不重试
                  default: 0
                  example: 0
      responses:
        '200':
          description: 成功响应
          content:
            application/json:
              schema:
                type: object
                required:
                  - task_id
                  - created
                  - data
                properties:
                  task_id:
                    type: string
                    description: 任务ID
                  task_status:
                    type: string
                    description: 任务状态
                    enum:
                      - pending
                      - running
                      - succeed
                      - failed
                    example: succeed
                  created:
                    type: integer
                    description: 创建时间戳
                    format: unix-timestamp
                  data:
                    type: array
                    description: 生成的图片列表
                    items:
                      type: object
                      required:
                        - url
                      properties:
                        url:
                          type: string
                          description: 图片URL
                          format: uri
                        b64_json:
                          type: string
                          description: 图片Base64编码数据
                          format: base64
                        revised_prompt:
                          type: string
                          description: 优化后的提示文本
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/StandardError'
components:
  responses:
    ValidationError:
      description: 参数验证错误
      content:
        application/json:
          schema:
            type: object
            properties:
              code:
                type: string
                example: validation_error
              message:
                type: string
                example: 参数验证失败
              details:
                type: object
                additionalProperties:
                  type: string
                example:
                  field: 错误描述
    Unauthorized:
      description: 未授权
      content:
        application/json:
          schema:
            type: object
            properties:
              code:
                type: string
                example: unauthorized
              message:
                type: string
                example: Invalid API key or token
    StandardError:
      description: 标准错误响应
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: 错误代码
          example: invalid_request
        message:
          type: string
          description: 错误信息描述
          example: 请求参数不合法
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API认证token
    apiKeyAuth:
      type: apiKey
      in: header
      name: GeekAI-API-Key
      description: API密钥认证

````