



const main = async () => {
const response = await fetch('https://api.ai.cc/v1/images/generations', {
method: 'POST',
headers: {
Authorization: 'Bearer ',
'Content-Type': 'application/json',
},
body: JSON.stringify({
image_url: 'https://cdn.prod.website-files.com/6600e1eab90de089c2d9c9cd/669726ef5242a23882952518_663fc2a1da49d30b9a44e774_image_3cN5ZzSm_1715403464233_raw.jpeg',
prompt: 'A cat dressed as a wizard with a background of a mystic forest.',
model: 'flux/srpo/image-to-image',
}),
}).then((res) => res.json());
console.log('Generation:', response);
};
main();
import requests
def main():
response = requests.post(
"https://api.ai.cc/v1/images/generations",
headers={
"Authorization": "Bearer ",
"Content-Type": "application/json",
},
json={
"image_url": "https://cdn.prod.website-files.com/6600e1eab90de089c2d9c9cd/669726ef5242a23882952518_663fc2a1da49d30b9a44e774_image_3cN5ZzSm_1715403464233_raw.jpeg",
"prompt": "A cat dressed as a wizard with a background of a mystic forest.",
"model": "flux/srpo/image-to-image",
},
)
response.raise_for_status()
data = response.json()
print("Generation:", data)
if __name__ == "__main__":
main()
-
AI Playground

Test all API models in the sandbox environment before you integrate.
We provide more than 300 models to integrate into your app.


Product Detail
Discover Black Forest Labs' FLUX.1 SRPO I2I, an advanced AI model engineered for high-fidelity image-to-image transformation. It excels in adapting styles and preserving content structure and texture integrity through sophisticated rectified flow and synergistic spatial-domain processing, making it ideal for complex visual conversions.
Technical Specifications
FLUX.1 SRPO Image-to-Image is meticulously designed to provide fast and precise image-to-image conversions with unparalleled flexibility in style and attribute transfer.
Performance Benchmarks
- 🚀 Processing Speed: Approximately 6-8 seconds per megapixel transformation, ensuring rapid output.
- ⚡ Inference Efficiency: Achieves up to 10x faster inference compared to leading image-to-image models under similar conditions, boosting productivity.
Performance Metrics
Across multiple image-to-image benchmarks, FLUX.1 SRPO consistently demonstrates superior structural retention and style transfer accuracy. With ELO ratings consistently above 1150, it firmly establishes itself as a leader in the I2I domain for both professional and creative applications.
API Pricing
$0.02625 per megapixel
Key Capabilities
- ✨ High-Fidelity Image Transformation: Preserves semantic content and fine details even during complex style, lighting, and texture alterations.
- 🎨 Style Adaptability: Seamlessly supports cross-domain style remapping while ensuring natural visual coherence.
- 📍 Spatially-Aware Modifications: Enables precise, selective editing on specific image regions without introducing undesirable artifacts.
- 📦 Batch Processing Support: Efficiently manages large-scale megapixel workloads with minimal latency, perfect for bulk operations.
- 🚫 Artifact Reduction: Integrates advanced denoising and refinement modules to guarantee clean, smooth, and professional outputs.
Optimal Use Cases
- ✏️ Creative Design: Transform sketches, rough drafts, or concept art into high-quality visuals with custom styles and aesthetics.
- 🎬 Visual Effects: Enhance or restyle video frames and images for compelling marketing and entertainment media.
- 🛍️ E-commerce: Achieve rapid re-styling and background modification of product photos at scale, streamlining your online presence.
- 🖼️ Digital Restoration: Recreate or improve damaged imagery with exceptional structural and texture fidelity, bringing old photos back to life.
- 🔬 Research & Development: Ideal for experimental workflows involving style transfer, domain adaptation, and advanced visual augmentation.
Code Sample
// Example API call for FLUX.1 SRPO Image-to-Image
import BlackForestLabs from 'bfl-sdk';
const bfl = new BlackForestLabs({ apiKey: 'YOUR_API_KEY' });
async function transformImage() {
try {
const result = await bfl.flux.srpo.imageToImage.transform({
sourceImageUrl: 'https://example.com/input.jpg',
stylePreset: 'cinematic-HDR',
fidelity: 0.8,
outputFormat: 'png'
});
console.log('Transformed Image URL:', result.outputUrl);
} catch (error) {
console.error('Error transforming image:', error);
}
}
transformImage();
Comparison with Other Models
API Integration
FLUX.1 SRPO I2I is readily accessible via the AI/ML API. For comprehensive details and integration guides, please refer to the official documentation: FLUX.1 SRPO API Documentation.
Frequently Asked Questions (FAQ)
What architectural innovations power FLUX.1 SRPO I2I's semantic-aware image transformation?
FLUX.1 SRPO I2I utilizes a revolutionary Semantic-Regularized Preference Optimization (SRPO) architecture. This integrates diffusion processes with semantic preservation networks, employing cross-attention mechanisms for semantic consistency, adversarial discriminators for output plausibility, and preference learning objectives to align with human aesthetic judgments. Advanced noise scheduling ensures precise control over transformations while preserving content and structural integrity.
How does SRPO optimization enhance image transformation quality and user alignment?
The SRPO framework combines reinforcement learning from human feedback with semantic consistency constraints. This enables the model to learn transformation preferences that balance creativity with content preservation. It incorporates multi-dimensional reward models to assess aesthetic quality, semantic fidelity, style consistency, and task-specific objectives, aligning outputs with human perceptual preferences and creative intentions.
What types of image-to-image transformations does FLUX.1 SRPO excel at?
The model excels in semantic-aware style transfer, intelligent image enhancement, creative reinterpretation, conditional generation based on specific attributes, and progressive refinement. It is particularly strong in transformations requiring nuanced understanding of image semantics, such as architectural style adaptation, portrait artistic rendering, and environmental mood alteration.
How does the model maintain content integrity during complex transformations?
FLUX.1 SRPO employs sophisticated content preservation mechanisms, including semantic segmentation awareness, structural consistency constraints, and progressive transformation protocols. Its architecture features content-aware attention masking to prioritize important regions and adaptive transformation strength, allowing varying degrees of modification based on semantic significance.
What creative control and precision does FLUX.1 SRPO offer for professional workflows?
The model provides granular creative control through adjustable transformation intensity, selective area editing with semantic masking, style interpolation, and conditional generation. Professional workflows benefit from batch processing, non-destructive editing, and optimized export options. It also supports collaborative editing with version control and real-time previews.
Learn how you can transformyour company with AICC APIs



Log in