获取任务
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: "本页接口说明详见下方接口定义;参数取值与返回以本平台实测为准。"
version: 1.0.0
paths:
/bfl/v1/get_result:
get:
summary: 获取任务
deprecated: false
description: "本页接口「获取任务」对应 GET /bfl/v1/get_result(归属:绘图模型/Flux 系列/Bfl 官方格式)。"
tags:
- 绘图模型/Flux 系列/Bfl 官方格式
parameters:
- name: id
in: query
description: "本次对象的唯一标识,由平台生成"
required: true
example: '{task_id}'
schema:
type: string
- name: Content-Type
in: header
description: "该字段的取值与含义以本平台实际返回为准。"
required: true
example: application/json
schema:
type: string
- name: Authorization
in: header
description: "该字段的取值与含义以本平台实际返回为准。"
required: false
example: Bearer {{YOUR_API_KEY}}
schema:
type: string
default: Bearer {{YOUR_API_KEY}}
requestBody:
content:
text/plain:
schema:
type: string
examples: {}
responses:
'200':
description: "该字段的取值与含义以本平台实际返回为准。"
content:
application/json:
schema:
type: object
properties:
id:
type: string
result:
type: object
properties:
seed:
type: integer
prompt:
type: string
sample:
type: string
duration:
type: number
end_time:
type: number
start_time:
type: number
required:
- seed
- prompt
- sample
- duration
- end_time
- start_time
status:
type: string
details:
type: 'null'
progress:
type: 'null'
required:
- id
- result
- status
- details
- progress
headers: {}
security: []
components:
schemas: {}
securitySchemes: {}
servers: []
security: []
使用提示:本页接口的 Base URL 为
https://api.allyang.cn,请求头需携带Authorization: Bearer <令牌>(令牌在控制台「令牌管理」中创建)。示例中的任务 ID、时间戳与文件地址均为示意值,实际以平台返回为准。模型名请在「模型广场」复制后填入,不要手输;计费、限流与在售清单以平台实测为准(部分数值待补)。