🔗账户体系

账户体系相关接口

用户信息

POST https://api.ttapi.io/midjourney/v1/info

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

Headers

NameValue

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"
}

任务列表

POST https://api.ttapi.io/midjourney/v1/fetch-list

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

Headers

NameValue

TT-API-KEY

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

Content-Type

application-json

Body

参数类型是否必须描述

page

int

页码,默认为 1

limit

int

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

status

string

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

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"
}

Last updated