Papersaurus API

OpenRouter-compatible artifact API backed by Gmail replies.

Image generation

curl -X POST 'http://localhost:8789/v1/images/generations' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"model":"farmrecipes/email-image","prompt":"farm recipe illustration","n":1,"size":"1024x1024","response_format":"b64_json"}'

Artifact generation

curl -X POST 'http://localhost:8789/v1/artifacts' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"model":"papersaurus/artifacts","input":"Create a printable farm recipe booklet","output_types":["all"],"response_format":"both"}'

Legacy process endpoint

curl -X POST 'http://localhost:8789/api/process' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"message":"Create a printable farm recipe PDF"}'