dreamshaper-8-lcm
Model ID: @cf/lykon/dreamshaper-8-lcm
Stable Diffusion model that has been fine-tuned to be better at photorealism without sacrificing range.
 Properties
Task Type: Text-to-Image
 Code Examples
Workers - TypeScript
export interface Env {  AI: Ai;
}
export default {  async fetch(request, env): Promise<Response> {
    const inputs = {      prompt: "cyberpunk cat",    };
    const response = await env.AI.run(      "@cf/lykon/dreamshaper-8-lcm",      inputs    );
    return new Response(response, {      headers: {        "content-type": "image/png",      },    });  },
} satisfies ExportedHandler<Env>;
curl
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run/@cf/lykon/dreamshaper-8-lcm \  -X POST \  -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \  -d '{ "prompt": "cyberpunk cat" }'
 Response
The response is a binary PNG file.
 API Schema
The following schema is based on JSON SchemaInput JSON Schema
Output JSON Schema