docs.bananaapi.io
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
Support
Banana API
Common API
Banana API
Common API
  1. Banana API
  • Welcome to Banana API
  • Banana API Quickstart
  • Image Generation or Editing Callbacks
  • Generate Image Callbacks (Banana 2)
  • Generate Image (Pro) Callbacks
  • Generate or Edit Image
    POST
  • Generate Image (Banana 2)
    POST
  • Generate Image (Pro)
    POST
  • Get Task Details
    GET
  1. Banana API

Get Task Details

GET
/api/v1/nanobanana/record-info
Query NanoBanana task execution details and status.
Query the status and results of a NanoBanana image generation or editing task.

Status Descriptions#

0: GENERATING - Task is currently being processed
1: SUCCESS - Task completed successfully
2: CREATE_TASK_FAILED - Failed to create the task
3: GENERATE_FAILED - Task creation succeeded but generation failed

Usage Guide#

Use this endpoint to check the current status of your generation task
Monitor task progress using the successFlag field
Retrieve generated image URLs when task is completed successfully
Handle error cases using errorCode and errorMessage fields

Developer Notes#

Task ID is obtained from the Generate or Edit Image endpoint response
Generated images URLs are available when successFlag is 1 (SUCCESS)
Original image URL (originImageUrl) from BFL is valid for 10 minutes only
Result image URL (resultImageUrl) on our server has longer availability

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Query Params

Responses

🟢200Success
application/json
Request successful
Bodyapplication/json

🟠400Bad Request
🟠401Unauthorized
🟠404Not Found
🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.bananaapi.io/api/v1/nanobanana/record-info?taskId=nanobanana_123456' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Success Example
{
    "code": 200,
    "msg": "success",
    "data": {
        "taskId": "nanobanana_task_123456",
        "paramJson": "",
        "completeTime": "",
        "response": {
            "originImageUrl": "https://bfl.com/image/original.jpg",
            "resultImageUrl": "https://ourserver.com/image/result.jpg"
        },
        "successFlag": 1,
        "errorCode": 0,
        "errorMessage": "",
        "createTime": ""
    }
}
Modified at 2026-11-11 03:43:02
Previous
Generate Image (Pro)
Built with