TTAPI 中文文档
  • TTAPI 中文文档
  • API能力
    • 🔥Midjourney API
    • Flux API
    • Recraft API
    • 📖LLM API
    • 🔀Midjourney Hold Account
    • 🟢OpenAI Image Models
    • 🔵Luma
    • 🎵Suno
    • 🔗账户体系
    • ⭕状态码详解
  • 企业服务
    • Midjourney离线服务
  • 问答专区
    • Midjourney
      • 常见问题解答
      • 账户托管
      • 科学使用你的Midjourney账户
    • Luma
    • 使用相关
    • 其他杂项
  • 升级日志
Powered by GitBook
On this page
  • 用户信息
  • 任务列表
  • TTAPI 服务状态

Was this helpful?

  1. API能力

账户体系

账户体系相关接口

PreviousSunoNext状态码详解

Last updated 1 month ago

Was this helpful?

用户信息

GET

获取您的帐户信息并查看剩余配额

Headers

Name
Value

TT-API-KEY

用于请求授权 TT-API 的API密钥

Content-Type

application-json

响应示例

{
  "status": "SUCCESS",
  "data": {
    "email": "xxxx@xx.com",
    "email_verified_at": "2023-11-10 17:44:30",
    "balance": 10,
    "freeze_balance": 0,
    "max_queue": 5,
    "created_at": "2023-11-10 17:44:30"
  },
  "message": "success"
}

任务列表

获取 TTApi 中所有的 Midjourney 历史任务列表

Headers

Name
Value

TT-API-KEY

用于请求授权 TT-API 的API密钥

Content-Type

application-json

Body

参数
类型
是否必须
描述

page

int

否

页码,默认为 1

limit

int

否

每页大小,最大值为100,默认值为10

status

string

否

order

String

否

列表顺序,asc或desc,默认为desc

响应示例

{
    "status": "SUCCESS",
    "data": [
        {
            "job_id": "ec5429d6-3d66-74cd-4fc6-5e98e6c56569",
            "model": "fast",
            "action": "upsample4",
            "quota": 2,
            "status": 2,
            "progress": "100",
            "prompt": "panda looking at her left hand where she holds 3 oranges while scraching her head with other head and looking confused –v 6 --ar 1:1",
            "discord_image": "https://cdn.discordapp.com/attachments/1199602691186372659/1199662119013076992/pthompson_panda_looking_at_her_left_hand_where_she_holds_3_oran_aa424e40-5081-4158-8020-81568dd45549.png?ex=65c35b69&is=65b0e669&hm=2d1c32b58d2fba08a4f379264fac6e75c96269cfe341a9cebce3c1967b017f36&",
            "cdn_image": "https://mjcdn.ttapi.io/attachments/1199602691186372659/1199662119013076992/pthompson_panda_looking_at_her_left_hand_where_she_holds_3_oran_aa424e40-5081-4158-8020-81568dd45549.png?ex=65c35b69&is=65b0e669&hm=2d1c32b58d2fba08a4f379264fac6e75c96269cfe341a9cebce3c1967b017f36&",
            "hook_url": "",
            "hook_times": 1,
            "components": [
                "upscale2",
                "upscale4",
                "low_variation",
                "high_variation",
                "pan_left",
                "pan_right",
                "pan_up",
                "pan_down"
            ],
            "message": "",
            "created_at": "2024-01-24 10:28:47",
            "updated_at": "2024-01-24 10:28:58"
        }
    ],
    "message": "success"
}

TTAPI 服务状态

获取各个服务当前状态以及最近100条成功任务平均耗时,注:Midjourney服务只统计imagine接口

Headers

Name
Value

TT-API-KEY

用于请求授权 TT-API 的API密钥

Content-Type

application-json

响应示例

{
    "status": "SUCCESS",
    "message": "success",
    "data": {
        "midjourney": {
            "fast": {
                "status": 200,
                "runningMessage": "Endpoints running",
                "averageExecute": 46.42
            },
            "relax": {
                "status": 200,
                "runningMessage": "Endpoints running",
                "averageExecute": 39.37
            },
            "turbo": {
                "status": 200,
                "runningMessage": "Endpoints running",
                "averageExecute": 23.87
            }
        },
        "swapFace": {
            "status": 200,
            "runningMessage": "Endpoints running",
            "averageExecute": 5.4
        },
        "luma": {
            "status": 200,
            "runningMessage": "Endpoints running",
            "averageExecute": 94.0
        },
        "suno": {
            "status": 200,
            "runningMessage": "Endpoints running",
            "averageExecute": 45.0
        },
        "flux": {
            "status": 200,
            "runningMessage": "Endpoints running",
            "averageExecute": 13.0
        }
    }
}

POST

作业状态,默认为 success,枚举与中的字段“status”相同 例:SUCCESS

GET

🔗
https://api.ttapi.io/midjourney/v1/info
https://api.ttapi.io/midjourney/v1/fetch-list
https://api.ttapi.io/status
fetch 和 webhook