> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leapx-hub.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Any Shoot - Creative Mode

## Introduction

Submit Any Shoot creative mode task, used to generate creative style transfer images.

## Authentication

<ParamField header="Authorization" type="string" required>
  Bearer Token, e.g., `Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...`
  How to get: Obtain via the POST interface in the Authentication module at the top left, `https://docs.leapx-hub.com/en/leapx-lab-v4/endpoint/get-token`
</ParamField>

## Request Parameters

<ParamField body="size" type="string" required>
  Image size
</ParamField>

<ParamField body="contents" type="object[]" required>
  Content list
</ParamField>

<ParamField body="contents[].parts" type="object[]" required>
  Part list
</ParamField>

<ParamField body="contents[].parts[].text" type="string">
  Text content
</ParamField>

<ParamField body="contents[].parts[].image" type="string">
  Image content (supports base64 or URL)
</ParamField>

### Example Code

<Tabs>
  <Tab title="cURL Example">
    ```bash theme={null}
    curl -X POST "https://leapx-hub.com/prod-api/nebula/v4/api/anyShootEasyModeSubmit" \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer sk-xxxxxxxxxx" \
      -d '{
        "size": "1024x1024",
        "contents": [
          {
            "parts": [
              {
                "text": "A cute little cat playing on the grass"
              },
              {
                "image": "https://example.com/cat.jpg"
              }
            ]
          }
        ]
      }'
    ```
  </Tab>

  <Tab title="Python Example">
    ```python theme={null}
    import requests
    import json

    url = "https://leapx-hub.com/prod-api/nebula/v4/api/anyShootEasyModeSubmit"
    headers = {
        "Content-Type": "application/json",
        "Authorization": "Bearer sk-xxxxxxxxxx"
    }
    data = {
        "size": "1024x1024",
        "contents": [
            {
                "parts": [
                    {
                        "text": "A cute little cat playing on the grass"
                    },
                    {
                        "image": "https://example.com/cat.jpg"
                    }
                ]
            }
        ]
    }

    response = requests.post(url, headers=headers, data=json.dumps(data))
    print(response.json())
    ```
  </Tab>
</Tabs>

### Response Example

<ResponseExample>
  ```json theme={null}
  {
    "code": 200,
    "msg": "Operation successful",
    "data": {
      "url": "https://example.com/generated-image.jpg"
    }
  }
  ```
</ResponseExample>
