TTAPI Others API

Account-related interface, you can obtain account balance, historical tasks and other information

Account Info

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


Get your account information and observe the remaining quota

Headers

NameTypeDescription
TT-API-KEY*StringYour API Key in TT API used for request authorization

Example Response

{
"status": "SUCCESS",
"data": {
    "email": "[email protected]",
    "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"
}

History Midjourney Jobs

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


Get all midjourney history jobs in TTAPI

Headers

NameTypeDescription
TT-API-KEY*StringYour API Key in TT API used for request authorization

Query params

NameTypeRequiredDescription
pageIntfalsepage of the list default num is 1
limitIntfalseeach page size, max is 100, default is 10
statusStringfalsejob status you want get, default is success, enum is same as the field 'status' which in fetch and webhook
orderStringfalseGet the order of the list, asc or desc, the default is desc

Example Request

{
    "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",
            "seed":null,
            "images":[]
        }
    ],
    "message": "success"
}