MercadoSoporte← Volver a la app

HappyHorse

Los modelos de HappyHorse se llaman a través de una API de trabajos asíncrona y unificada. Inicia una tarea con POST /api/generate y luego sondea GET /api/generate/{taskId} hasta que termine. Esta familia expone 7 endpoints.

Resumen

Todos los endpoints comparten la misma envoltura — solo cambian model y los campos input. Ejecuta cualquiera desde el playground del Mercado de modelos.

Autenticación

Crea una API key en /api-keys y luego envíala como token Bearer. Las solicitudes desde el navegador con sesión iniciada también funcionan mediante la cookie de sesión.

Authorization: Bearer <YOUR_API_KEY>

Crear tarea

POST
POST https://97ai.97claude.com/api/generate

Cuerpo: { "model": "<slug>", "input": { … } }

Respuesta: { "taskId": "<id>", "state": "waiting" }

Consultar resultado

GET
GET https://97ai.97claude.com/api/generate/<taskId>

Respuesta: { "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }

Asíncrono
Un 200 de Crear tarea solo significa que la tarea fue aceptada — no que haya terminado. Sondea este endpoint hasta que state sea success o fail. Las tareas fallidas no se facturan.

Endpoints

ModeloTareamodel slug
HappyHorseText to Videohappyhorse/text-to-video
HappyHorseImage to Videohappyhorse/image-to-video
HappyHorseVideo to Videohappyhorse/reference-to-video
HappyHorseVideo Editinghappyhorse/video-edit
HappyHorse 1.1Image to Videohappyhorse-1-1/image-to-video
HappyHorse 1.1Text to Videohappyhorse-1-1/text-to-video
HappyHorse 1.1Video to Videohappyhorse-1-1/reference-to-video

HappyHorse · Text to Video

POSTText to Videohappyhorse/text-to-video
campos input
promptstringobligatorio

Text prompt describing the desired output.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "happyhorse/text-to-video",
    "input": { "prompt": "a red panda surfing" }
  }'

HappyHorse · Image to Video

POSTImage to Videohappyhorse/image-to-video
campos input
promptstringobligatorio

Text prompt describing the desired output.

image_urlsstring[]obligatorio

One or more source image URLs to condition on.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "happyhorse/image-to-video",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

HappyHorse · Video to Video

POSTVideo to Videohappyhorse/reference-to-video
campos input
promptstringobligatorio

Text prompt describing the desired output.

video_urlstringobligatorio

Source video URL to transform.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "happyhorse/reference-to-video",
    "input": { "prompt": "make it snow", "video_url": "https://example.com/in.mp4" }
  }'

HappyHorse · Video Editing

POSTVideo Editinghappyhorse/video-edit
campos input
promptstringobligatorio

Text prompt describing the desired output.

video_urlstringobligatorio

Source video URL to transform.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "happyhorse/video-edit",
    "input": { "prompt": "make it snow", "video_url": "https://example.com/in.mp4" }
  }'

HappyHorse 1.1 · Image to Video

POSTImage to Videohappyhorse-1-1/image-to-video
campos input
promptstringobligatorio

Text prompt describing the desired output.

image_urlsstring[]obligatorio

One or more source image URLs to condition on.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "happyhorse-1-1/image-to-video",
    "input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
  }'

HappyHorse 1.1 · Text to Video

POSTText to Videohappyhorse-1-1/text-to-video
campos input
promptstringobligatorio

Text prompt describing the desired output.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "happyhorse-1-1/text-to-video",
    "input": { "prompt": "a red panda surfing" }
  }'

HappyHorse 1.1 · Video to Video

POSTVideo to Videohappyhorse-1-1/reference-to-video
campos input
promptstringobligatorio

Text prompt describing the desired output.

video_urlstringobligatorio

Source video URL to transform.

Ejemplo
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "happyhorse-1-1/reference-to-video",
    "input": { "prompt": "make it snow", "video_url": "https://example.com/in.mp4" }
  }'