图片生成与编辑

交互式编辑 Hướng Dẫn API

Hướng dẫn 交互式编辑 cho aliapi.me, gồm Base URL tương thích OpenAI, API key, tên model, cấu trúc request và cách xử lý lỗi.

Mục đích

Hướng dẫn 交互式编辑 cho aliapi.me, gồm Base URL tương thích OpenAI, API key, tên model, cấu trúc request và cách xử lý lỗi.

Checklist tích hợp

  • Base URL: https://api.aliapi.me/v1.
  • Authentication: Authorization: Bearer YOUR_API_KEY.
  • Model names should be copied from the aliapi.me model catalog.
  • Endpoint hint: 图片模型接口或 Responses.

Cấu trúc request

{
  "model": "copy-model-name-from-catalog",
  "messages": [
    {"role": "user", "content": "your task here"}
  ]
}

Xử lý lỗi

Start with a minimal chat request, then verify the API key, Base URL, model name, quota, request fields and request logs.