UniAPI API Doc
首页全部OpenAI平台接口音乐模型图像模型视频模型
首页全部OpenAI平台接口音乐模型图像模型视频模型
  1. FalAI
  • Luma
    • 生成视频
      POST
    • 扩展视频
      POST
    • 获取下载地址
      GET
    • 获取任务
      GET
  • FalAI
    • 提交任务
      POST
    • 获取任务状态
      GET
    • 获取任务结果
      GET
  • Kling
    • 图像生成(文生图/图生图)
      POST
    • 图像生成 获取状态
      GET
    • 文生视频
      POST
    • 文生视频 获取状态
      GET
    • 图生视频
      POST
    • 图生视频 获取状态
      GET
    • 虚拟试穿
      POST
    • 虚拟试穿 获取状态
      GET
  1. FalAI

提交任务

开发中
POST
/fal-ai/{model}
注意: 每个模型请求参数不同,你需要参考fal ai中的参数。例如: https://fal.ai/models/fal-ai/kling-video/v2.1/standard/image-to-video
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.uniapi.io/fal-ai/kling-video/v2.1/standard/image-to-video' \
--header 'Authorization: Key ' \
--header 'Content-Type: application/json' \
--data-raw '{
  "prompt": "As the sun dips below the horizon, painting the sky in fiery hues of orange and purple, powerful waves relentlessly crash against jagged, dark rocks, their white foam a stark contrast to the deepening twilight; the textured surface of the rocks, wet and glistening, reflects the vibrant colors, creating a mesmerizing spectacle of nature'\''s raw power and breathtaking beauty",
  "image_url": "https://v3.fal.media/files/panda/W-_J46zuJDQnUhqkKm9Iv_image.webp",
  "duration": "5",
  "aspect_ratio": "16:9",
  "negative_prompt": "blur, distort, and low quality",
  "cfg_scale": 0.5
}'
响应示例响应示例
{
	"status": "IN_QUEUE",
	"request_id": "725e8f7a-afbf-4e9d-9e33-314220bb1fed",
	"response_url": "https://queue.fal.run/fal-ai/xxxx/requests/725e8f7a-afbf-4e9d-9e33-314220bb1fed",
	"status_url": "https://queue.fal.run/fal-ai/xxxx/requests/725e8f7a-afbf-4e9d-9e33-314220bb1fed/status",
	"logs": null,
	"metrics": {},
	"queue_position": 0
}

请求参数

Path 参数
model
string 
模型名称
必需
示例值:
kling-video/v2.1/standard/image-to-video
Header 参数
Authorization
string 
必需
示例值:
Key {{tokens}}
Body 参数application/json
prompt
string 
必需
image_url
string 
必需
duration
string 
必需
aspect_ratio
string 
必需
negative_prompt
string 
必需
cfg_scale
number 
必需
示例

返回响应

🟢200成功
application/json
Body
status
string 
必需
request_id
string 
必需
response_url
string 
必需
通过这个地址获取结果
status_url
string 
必需
通过这个获取任务状态
logs
null 
必需
metrics
object 
必需
queue_position
integer 
必需
修改于 2025-06-09 11:22:18
上一页
获取任务
下一页
获取任务状态
Built with