# Generate 3.0（替换背景） Replace Background

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /ideogram/v1/ideogram-v3/replace-background:
    post:
      summary: Generate 3.0（替换背景） Replace Background
      deprecated: false
      description: >-
        使用 Ideogram 3.0 模型，根据给定的提示和可选参数同步生成图像

        具体参数请看官方文档：https://developer.ideogram.ai/api-reference/api-reference/replace-background-v3

        返回的图像 URL 在 24 小时内有效，超过该时间将无法访问图像。

        已反代图片
      tags:
        - 绘画模型/Ideogram
      parameters:
        - name: Accept
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: true
          example: Bearer {{YOUR_API_KEY}}
          schema:
            type: string
      requestBody:
        content:
          multipart/form-data:
            encoding:
              image:
                contentType: multipart/form-data
            schema:
              type: object
              properties:
                image:
                  format: binary
                  type: string
                  description: |
                    图像正在重新处理（最大大小为 10 兆字节）；目前仅支持 JPEG、WebP 和 PNG 格式。
                  example: file://C:\Users\Administrator\Desktop\例子.png
                prompt:
                  example: Add a forest in the background
                  type: string
              required:
                - image
            example: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  request_id:
                    type: string
                  data:
                    type: object
                    properties:
                      task_id:
                        type: string
                      task_status:
                        type: string
                      created_at:
                        type: integer
                      updated_at:
                        type: integer
                    required:
                      - task_id
                      - task_status
                      - created_at
                      - updated_at
                    x-apifox-orders:
                      - task_id
                      - task_status
                      - created_at
                      - updated_at
                required:
                  - code
                  - message
                  - request_id
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - request_id
                  - data
              example:
                code: 0
                message: SUCCEED
                request_id: CjMT7WdSwWcAAAAAALvB3g
                data:
                  task_id: CjMT7WdSwWcAAAAAALvB3g
                  task_status: submitted
                  created_at: 1733851336696
                  updated_at: 1733851336696
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 绘画模型/Ideogram
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/8227283/apis/api-453793908-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers: []
security:
  - bearer: []

```
