# Mock Image (Testing) > ## Quick Reference - Model ID: mock-image - Creator: Unknown - Status: active - Base URL: https://api.lumenfall.ai/openai/v1 ## Specifications - Input Modalities: text - Output Modalities: image ## Model Identifiers - Primary Slug: mock-image ## Available Providers ### Lumenfall - Config Key: lumenfall/mock-image - Provider Model ID: mock-image - Pricing: Free/image ## Code Examples ### Text to Image (Generation) #### cURL curl -X POST \ https://api.lumenfall.ai/openai/v1/images/generations \ -H "Authorization: Bearer $LUMENFALL_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "mock-image", "prompt": "A serene mountain landscape at sunset", "size": "1024x1024" }' # Response: # { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] } #### JavaScript import OpenAI from 'openai'; const client = new OpenAI({ apiKey: 'YOUR_API_KEY', baseURL: 'https://api.lumenfall.ai/openai/v1' }); const response = await client.images.generate({ model: 'mock-image', prompt: 'A serene mountain landscape at sunset', size: '1024x1024' }); // { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } console.log(response.data[0].url); #### Python from openai import OpenAI client = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.lumenfall.ai/openai/v1" ) response = client.images.generate( model="mock-image", prompt="A serene mountain landscape at sunset", size="1024x1024" ) # { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } print(response.data[0].url) ## About ## Overview Mock Image is a specialized utility model designed primarily for testing and development workflows within image generation pipelines. It functions as a placeholder or "stub" that accepts text prompts and returns a static or predictable image output. This allows developers to validate API integrations, UI layouts, and downstream data processing without incurring the costs or latency associated with high-fidelity production models. ## Strengths * **Predictable Performance:** Since the model does not perform complex diffusion or pixel synthesis, it offers near-instantaneous response times for integration testing. * **Cost Efficiency:** With a starting price of $0.00, it allows for high-volume automated testing and CI/CD pipeline validation without consuming generation budgets. * **API Compatibility:** It adheres to standard text-to-image input/output structures, ensuring that code written for this model is easily swappable with production-grade models like Stable Diffusion or DALL-E. * **Reliable Availability:** Because it requires minimal computational resources, the model is highly resilient to the scaling issues or GPU shortages that can affect larger generative models. ## Limitations * **No Generative Intelligence:** The model does not interpret prompts or follow complex instructions; it will not produce creative, accurate, or high-fidelity visual representations of text. * **Fixed Visual Output:** Users should expect a static or randomized placeholder image rather than a varied artistic gallery, making it unsuitable for actual content creation. ## Technical Background Mock Image is an architectural shim rather than a deep learning neural network. It is designed to mimic the interface of an image generation model by accepting common parameters—such as prompt strings, aspect ratios, and seeds—and returning a valid image URL or base64 string. This "mocking" approach is a standard software engineering pattern used to isolate system components during the development lifecycle. ## Best For This model is ideal for developers building the front-end of AI applications who need to test image gallery layouts, loading states, and error handling without running live inferences. It is also well-suited for backend engineers verifying that their orchestration logic and database storage for image metadata are functioning correctly. Mock Image is available through Lumenfall's unified API and interactive playground, allowing you to switch between testing and production environments by simply changing the model slug in your implementation. ## Frequently Asked Questions ### How much does Mock Image (Testing) cost? Mock Image (Testing) is free to use through Lumenfall's unified API. ### How do I use Mock Image (Testing) via API? You can use Mock Image (Testing) through Lumenfall's OpenAI-compatible API. Send requests to the unified endpoint with model ID "mock-image". Code examples are available in Python, JavaScript, and cURL. ### Which providers offer Mock Image (Testing)? Mock Image (Testing) is available through Lumenfall on Lumenfall. Lumenfall automatically routes requests to the best available provider. ## Links - Model Page: https://lumenfall.ai/models/unknown/mock-image - About: https://lumenfall.ai/models/unknown/mock-image/about - Providers, Pricing & Performance: https://lumenfall.ai/models/unknown/mock-image/providers - API Reference: https://lumenfall.ai/models/unknown/mock-image/api - Benchmarks: https://lumenfall.ai/models/unknown/mock-image/benchmarks - Use Cases: https://lumenfall.ai/models/unknown/mock-image/use-cases - Playground: https://lumenfall.ai/playground?model=mock-image - API Documentation: https://docs.lumenfall.ai