Generate Tesla Car Wraps
Call Craftsman Agent API OneKey Router to generate Tesla Car Wrap Images and Paints that will display on 3D screen.
Quick Start
- Set your environment variable
DEEPNLP_ONEKEY_ROUTER_ACCESS. - Use the CLI (primary suggested method) or the provided scripts.
Usage
1. CLI (Recommended)
CLI Illustration
npx onekey agent <unique_id> <api_id> $JSON --timeout 30000
<unique_id>: the unique identifier of the onekey routed agents, "owner/repo".<api_id>: refers to the unique endpoint name of API.$JSON: the json string passed to cli.--timeout: controls the timeout of API calling, unit is mill seconds.
| Parameter | Value |
|---|---|
| unique_id | craftsman-agent/craftsman-agent |
| api_id | generate_tesla_wraps |
| $JSON | prompt, images, mode, car_model, output_number (default to 1, now limited) |
Valid values for input parameters
| Parameter | Values |
|---|---|
| car_model | tesla_model_ytesla_model_y_2025_basetesla_model_y_2025_performancetesla_model_y_2025_premiumtesla_model_yltesla_model_3tesla_model_3_2024_basetesla_model_3_2024_performancetesla_model_cybertrucktesla_model_roadstertesla_model_stesla_model_x |
| mode | basicstandardadvanced |
Example
export DEEPNLP_ONEKEY_ROUTER_ACCESS=YOUR_ACCESS_KEY
npx onekey agent craftsman-agent/craftsman-agent generate_tesla_wraps '{"prompt":"I would like to paint my tesla model YL similar to race car, color of a blue and purple with stars","images":[],"mode":"basic","car_model":"tesla_model_yl","output_number":1}' --timeout 60000
2. Python REST API
python3 scripts/generate_tesla_wraps.py --prompt "I would like to paint my tesla model YL similar to race car, color of a blue and purple with stars" --mode basic --car-model tesla_model_yl --output-number 1
3. TypeScript REST API
node scripts/generate_tesla_wraps.ts --prompt "I would like to paint my tesla model YL similar to race car, color of a blue and purple with stars" --mode basic --car-model tesla_model_yl --output-number 1
Authentication
Remember to set the environment variable:
export DEEPNLP_ONEKEY_ROUTER_ACCESS=YOUR_ACCESS_KEY
Get your key at DeepNLP Workspace.
Demo Result
{"success":true,"text":"","images":[{"url":"https://us-static.aiagenta2z.com/local/files-wd/onekey_llm_router/efd67a8f-a427-4e56-8b00-c02d4eb332d5.png"}]}