{"_id":"@ai-toolkit/luma","name":"@ai-toolkit/luma","dist-tags":{"latest":"0.0.9"},"versions":{"0.0.9":{"name":"@ai-toolkit/luma","version":"0.0.9","license":"Apache-2.0","sideEffects":false,"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"dependencies":{"@ai-toolkit/provider":"1.0.10","@ai-toolkit/provider-utils":"2.1.11"},"devDependencies":{"@types/node":"^18","tsup":"^8","typescript":"5.6.3","zod":"3.23.8","@khulnasoft/ai-tsconfig":"0.0.0"},"peerDependencies":{"zod":"^3.0.0"},"engines":{"node":">=18"},"publishConfig":{"access":"public"},"homepage":"https://sdk.khulnasoft.com/docs","repository":{"type":"git","url":"git+https://github.com/khulnasoft/ai-toolkit.git"},"bugs":{"url":"https://github.com/khulnasoft/ai-toolkit/issues"},"keywords":["ai-toolkit"],"scripts":{"build":"tsup","build:watch":"tsup --watch","clean":"rm -rf dist","lint":"eslint \"./**/*.ts*\"","type-check":"tsc --noEmit","prettier-check":"prettier --check \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run"},"_id":"@ai-toolkit/luma@0.0.9","description":"The **Luma provider** for the [AI TOOLKIT](https://sdk.khulnasoft.com/docs) contains support for Luma AI's state-of-the-art image generation models - Photon and Photon Flash.","_integrity":"sha512-r7oRgBzHqO9ZCbbf7NycZSZ0G8UWBnQCE7gjjP6YuPt7bdJ+6ZFQ6mKVamCIxtM2SRWaFWbfzIZKUIVRTkRcog==","_resolved":"/tmp/5f99d4d93a33073333edf899cc7fa3d0/ai-toolkit-luma-0.0.9.tgz","_from":"file:ai-toolkit-luma-0.0.9.tgz","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-r7oRgBzHqO9ZCbbf7NycZSZ0G8UWBnQCE7gjjP6YuPt7bdJ+6ZFQ6mKVamCIxtM2SRWaFWbfzIZKUIVRTkRcog==","shasum":"dacc7ad896b67dde076446ba7b101418753f4bf9","tarball":"https://registry.npmjs.org/@ai-toolkit/luma/-/luma-0.0.9.tgz","fileCount":9,"unpackedSize":51576,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDgrYJNrg9CL1mvBY7pTDp5lr1CsCWYKBdmbiHzqzw59wIgHUbMW/ZhAZgq5xfGOcOUkZG3LOpXGGTSoXdKGrkd5Js="}]},"_npmUser":{"name":"khulnasoft-lab","email":"iconmamundentist@gmail.com"},"directories":{},"maintainers":[{"name":"khulnasoft-lab","email":"iconmamundentist@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/luma_0.0.9_1741546716833_0.5716508403418288"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-09T18:58:36.761Z","0.0.9":"2025-03-09T18:58:37.056Z","modified":"2025-03-09T18:58:37.340Z"},"maintainers":[{"name":"khulnasoft-lab","email":"iconmamundentist@gmail.com"}],"description":"The **Luma provider** for the [AI TOOLKIT](https://sdk.khulnasoft.com/docs) contains support for Luma AI's state-of-the-art image generation models - Photon and Photon Flash.","homepage":"https://sdk.khulnasoft.com/docs","keywords":["ai-toolkit"],"repository":{"type":"git","url":"git+https://github.com/khulnasoft/ai-toolkit.git"},"bugs":{"url":"https://github.com/khulnasoft/ai-toolkit/issues"},"license":"Apache-2.0","readme":"# AI TOOLKIT - Luma Provider\n\nThe **Luma provider** for the [AI TOOLKIT](https://sdk.khulnasoft.com/docs) contains support for Luma AI's state-of-the-art image generation models - Photon and Photon Flash.\n\n## About Luma Photon Models\n\nLuma Photon and Photon Flash are groundbreaking image generation models that deliver:\n\n- Ultra-high quality image generation\n- 10x higher cost efficiency compared to similar models\n- Superior prompt understanding and adherence\n- Unique character consistency capabilities from single reference images\n- Multi-image reference support for precise style matching\n\nFor more detailed information about the Luma models and their capabilities, please visit [Luma AI](https://lumalabs.ai/).\n\n## Setup\n\nThe Luma provider is available in the `@ai-toolkit/luma` module. You can install it with:\n\n```bash\nnpm i @ai-toolkit/luma\n```\n\n## Provider Instance\n\nYou can import the default provider instance `luma` from `@ai-toolkit/luma`:\n\n```ts\nimport { luma } from '@ai-toolkit/luma';\n```\n\n## Image Generation Example\n\n```ts\nimport { luma } from '@ai-toolkit/luma';\nimport { experimental_generateImage as generateImage } from 'ai-toolkit';\nimport fs from 'fs';\n\nconst { image } = await generateImage({\n  model: luma.image('photon-1'),\n  prompt: 'A serene mountain landscape at sunset',\n});\n\nconst filename = `image-${Date.now()}.png`;\nfs.writeFileSync(filename, image.uint8Array);\nconsole.log(`Image saved to ${filename}`);\n```\n\n## Documentation\n\nPlease check out the **[Luma provider](https://sdk.khulnasoft.com/providers/ai-toolkit-providers/luma)** for more information.\n","readmeFilename":"README.md","_rev":"1-8c4f9e0d94bcb26b8cb296e2b0659c23"}