Saltar al contenido principal
POST
/
projects
/
generate
Generate a project
curl --request POST \
  --url https://faces.app/api/v1/projects/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "5-slide pitch deck about AI in healthcare with a modern dark theme",
  "templateId": "<string>",
  "inspirationId": "<string>"
}
'
{
  "jobId": "<string>",
  "editorUrl": "<string>",
  "estimatedDuration": "240 seconds",
  "templateId": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.faces.app/llms.txt

Use this file to discover all available pages before exploring further.

Autorizaciones

Authorization
string
header
requerido

API key with "faces_" prefix. Create one at Settings > Developers.

Cuerpo

application/json
prompt
string
requerido

A detailed description of the project to generate.

Minimum string length: 1
Ejemplo:

"5-slide pitch deck about AI in healthcare with a modern dark theme"

templateId
string

Use an existing project as a template. Layout and design are preserved, content and controls change.

inspirationId
string

ID of a style inspiration to apply.

Respuesta

Job created

jobId
string
requerido

Poll this ID with the status endpoint.

status
enum<string>
requerido
Opciones disponibles:
processing
editorUrl
string<uri>
requerido

URL to open the project in the Faces editor.

estimatedDuration
string
requerido

Estimated generation time. 30s with a template, 60s with inspiration, 240s from scratch.

Ejemplo:

"240 seconds"

templateId
string