| name | adobe-hello-world |
| description | Create minimal working examples for Adobe APIs: Firefly image generation,
PDF extraction, and Photoshop background removal.
Use when starting a new Adobe integration, testing your setup,
or learning basic Adobe API patterns.
Trigger with phrases like "adobe hello world", "adobe example",
"adobe quick start", "simple adobe code", "first adobe API call".
|
| allowed-tools | Read, Write, Edit |
| version | 1.6.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","design","adobe"] |
| compatibility | Designed for Claude Code |
Adobe Hello World
Overview
Three minimal working examples covering Adobe's core API surfaces: Firefly AI image generation, PDF content extraction, and Photoshop background removal.
Prerequisites
- Completed
adobe-install-auth setup
- Valid OAuth Server-to-Server credentials
- Node.js 18+ with
@adobe/firefly-apis or @adobe/pdfservices-node-sdk installed
Instructions
Example 1: Firefly Text-to-Image Generation
import 'dotenv/config';
import { getAdobeAccessToken } from './adobe/auth';
async function generateImage() {
const token = await getAdobeAccessToken();
const response = await fetch(
'https://firefly-api.adobe.io/v3/images/generate',
{
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'x-api-key': process.env.ADOBE_CLIENT_ID!,
'Content-Type': 'application/json',
},
body: JSON.stringify({
prompt: 'A futuristic cityscape at sunset with flying cars',
n: 1,
size: {
width: ,
: ,
},
: ,
}),
}
);
(!response.) {
();
}
result = response.();
.(, result.[]..);
result;
}
().(.);