Skip to main content
Get started with the MuleRouter API in a few simple steps.
1

Get an API Key

In the MuleRouter Console, open the API Keys tab and click Generate new key.Store your API key securely after creation.
2

Use the API Key

Use the API key to send requests to the MuleRouter API.For example, use the Nano Banana Pro endpoint:
  curl --request POST \
    --url https://api.mulerouter.ai/vendors/google/v1/nano-banana-pro/generation \
    --header 'Authorization: Bearer <token>' \
    --header 'Content-Type: application/json' \
    --data '{
      "prompt": "A beautiful sunset over the mountains",
      "aspect_ratio": "5:4",
      "resolution": "2K"
  }'
3

Get Result of a Task

Use the task ID to get the result of the task.For example, use the task ID to get the result of the task:
  curl --request GET \
  --url https://api.mulerouter.ai/vendors/google/v1/nano-banana-pro/generation/f81d4fae-7dec-11d0-a765-00a0c91e6bf6 \
  --header 'Authorization: Bearer <token>' \