Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

luma-photon

БесплатноБез исполняемых скриптовНе проверен

Use Luma AI's first-party Photon and Photon Flash image API for text-to-image, image/style/character references, image modification, asynchronous generation…

calesthioот calesthio★ 262 звезды на GitHub

Об этом скилле

Luma Photon production guide

Use this skill for the legacy-path Luma API image surface backed by photon-1 and photon-flash-1. Keep it separate from Ray video generation, newer UNI image workflows, Luma Agents, the consumer app, ComfyUI wrappers, and hosted third-party gateways. The string dream-machine remains in the documented Photon REST path even though Luma's current brand guidance calls that terminology retired.

All volatile facts below were verified against first-party sources on 2026-07-09. Recheck the API reference, billing dashboard, rate-limit page, and governing agreement immediately before production commitments.

Choose Photon deliberately

The documented image model IDs are:

  • photon-1 — the default Photon model. Luma positions it for higher-fidelity generation.
  • photon-flash-1 — the faster, lower-cost iteration model.

Treat those descriptions as provider positioning, not independent quality findings. Run a fixed brief-and-reference bake-off using the intended deliverable, then compare prompt adherence, source fidelity, text, anatomy, material continuity, latency, rejection rate, and actual account charge. Use Flash for broad exploration when it meets the bar; promote only finalists to Photon when measured quality justifies the cost.

Do not send Photon work to /generations/video, Ray models, Luma Agents, a consumer-session endpoint, or an OpenAI-compatible gateway. The first-party Photon create route is:

POST https://api.lumalabs.ai/dream-machine/v1/generations/image
Authorization: Bearer $LUMAAI_API_KEY
Content-Type: application/json

The shared management routes are:

GET    /dream-machine/v1/generations/{id}
GET    /dream-machine/v1/generations?limit=100&offset=0
DELETE /dream-machine/v1/generations/{id}
GET    /dream-machine/v1/credits

The official Python package is lumaai; its image create surface is client.generations.image.create(...), while polling uses client.generations.get(id=...). Direct REST is used in the complete example so timeout, redirect, byte, decode, and persistence behavior stays explicit.

Request contract

The image guide, endpoint reference, and first-party OpenAPI document this request shape:

Field Production interpretation
model Required by the schema; use exactly photon-1 or photon-flash-1.
prompt Natural-language image direction. The general error guide documents 3–5000 characters; keep critical text and constraints explicit.
aspect_ratio 1:1, 16:9, 9:16, 4:3, 3:4, 21:9, or 9:21; default 16:9.
format jpg or png; default jpg. Verify the returned bytes rather than trusting this request value.
callback_url Optional HTTPS endpoint that receives repeated generation objects. No callback signature or custom-auth header is documented.
image_ref Array of {url, weight} references for concept/composition/variation guidance.
style_ref Array of {url, weight} style references. Use one until a broader count is contractually confirmed.
character_ref Object with documented identity0: {images: [...]}; up to four images of the same identity in the guide.
modify_image_ref One {url, weight} source image to modify by instruction.
sync, sync_timeout Listed in the OpenAPI/reference with defaults false and 60, but contradicted by the image guides' statement that polling is the only supported retrieval path.

There is no documented Photon seed, negative-prompt field, mask, guidance scale, step count, base64/data-URI input, multipart upload, output n, arbitrary pixel size, or resolution selector. One create call yields one generation object with a singular assets.image. Make separately budgeted requests for variants.

Dated documentation conflicts

Fail conservatively where first-party sources disagree:

  • The image guides say image_ref supports up to four images. Luma's official luma-api-mcp README says eight. Cap production requests at four until the live reference or Luma support resolves the discrepancy.
  • The REST/OpenAPI reference lists sync and sync_timeout; the Python and JavaScript image guides say polling is currently the only supported way to obtain an image. Keep sync: false and use bounded polling.
  • The Photon product page publishes Photon Flash at $0.004 per 2MP/1080p image, while the older v1.2 API changelog publishes $0.002. Both publish Photon at $0.015. Budget Flash at the higher public figure and reconcile the account charge; do not quote either as a guaranteed current tariff.
  • The public Photon reference does not publish a numeric output-URL lifetime, a fixed API Input/Output retention period, a regional endpoint, data-residency selection, an idempotency key, or a per-generatio
Полный SKILL.md на GitHub

Установить luma-photon в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

EVAL.md

FAQ

Что делает скилл luma-photon?

Use Luma AI's first-party Photon and Photon Flash image API for text-to-image, image/style/character references, image modification, asynchronous generation, secure artifact handling, production prompting, cost control, and policy-aware delivery. Trigger for Luma Photon API integration or production work; do not use for Ray video, UNI image models, the Luma consumer app, or third-party Photon gateways.

Как установить скилл luma-photon?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл luma-photon запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить luma-photon с