Media Gen SolutionCustomizations


You can tweak your images using various customizations available within OctoAI Media Gen solution including checkpoints, LoRAs, textual inversions and ControlNets

With OctoAI Media Gen solution, you can effortlessly integrate Stable Diffusion’s customizable image generation features into your application. While standard pre-trained image generation assets from repositories like HuggingFace may suffice for simple tasks, customization becomes crucial for commercial uses. Customization allows precise control over generating specific subjects and environments, which is essential for most commercial needs. Stable Diffusion, offered by OctoAI, provides both basic and advanced customization options. These include adjusting prompt weights, applying style presets, and employing advanced techniques like LoRAs, checkpoints, textual inversions, and ControlNets. Additionally, with OctoAI, you can create your own LoRA asset using custom image datasets and leverage it to meet your business requirements. To learn more, review Fine-tuning on OctoAI

Pro or Enterprise account is required to access fine-tuning.

OctoAI web UI provides an easy way to experiment by combining assets. An equivalent API call is displayed in the example below.

Example Code:

$curl -X POST "" \
> -H "Content-Type: application/json" \
> -H "Authorization: Bearer $OCTOAI_TOKEN" \
> --data-raw '{
> "prompt": "Commercial photography,(snowy:0.8) ,luxury perfume bottle, angelic silver light, studio light, high resolution photography, fine details",
> "negative_prompt": "Blurry photo, distortion, low-res, poor quality, (flowers on bottle negativeXL_D:0.9), (snowflake on bottle negativeXL_D:0.9), (colored liquid in bottle negativeXL_D:1.0)",
> "checkpoint": "octoai:RealVisXL",
> "loras": {
> "octoai:add-detail": 1
> },
> "textual_inversions": {
> "octoai:NegativeXL": "“negativeXL_D”"
> },
> "width": 1024,
> "height": 1024,
> "num_images": 1,
> "sampler": "DDIM",
> "steps": 30,
> "cfg_scale": 12,
> "use_refiner": true,
> "high_noise_frac": 0.8,
> "style_preset": "base"
> }' | jq -r ".images[0].image_b64" | base64 -d >result.jpg

Start creating images

Ready to start creating images? Get started with our Image Gen API.