# 🖌️ Text-Based Image Editing API (Flux Kontext Pro) > Edit and transform images using natural language prompts with high-quality, consistent output—ideal for instant, precise, and controllable image edits. 🖌️ Text-Based Image Editing API (Flux Kontext Pro) is a image, artificial-intelligence, visual-recognition, text-to-image, image-to-image API service available through API Market. This API provides advanced functionality with enterprise-grade reliability and scalability. Site Type: API Marketplace, API Documentation Purpose: API Service and Integration Documentation Technology: REST API, JSON, HTTP/HTTPS Provider: magicapi ## Core Documentation - [API Reference](https://api.market/store/magicapi/ai-text-based-image-editing-api): Complete endpoint documentation and usage guide - [OpenAPI Specification](https://api.market/store/magicapi/ai-text-based-image-editing-api/openapi.yaml): Machine-readable API specification - [API Playground](https://api.market/store/magicapi/ai-text-based-image-editing-api#api-playground): Interactive testing environment ## Integration Resources - [Production API Base](https://prod.api.market/api/v1/magicapi/ai-text-based-image-editing-api): Base URL for API calls - [MCP Server Configuration](https://docs.api.market/api.market-mcp-server-guide): Model Context Protocol setup - [Getting Started](https://docs.api.market/what-are-api-products): Quick start guide and integration examples ## Pricing Plans Current public pricing plans for 🖌️ Text-Based Image Editing API (Flux Kontext Pro): - **Plan**: Pay as you go - $0.05 per Image generated ## Quick Start - [Authentication](https://api.market/store/magicapi/ai-text-based-image-editing-api): Use needs to get an API key from API.market and set x-api-market-key header in all API calls. - [OpenAPI with Examples](https://api.market/store/magicapi/ai-text-based-image-editing-api/openapi.yaml): OpenAPI specification with examples and playground. - [Error Handling](https://docs.api.market/error-codes): Common error codes and troubleshooting ## MCP Configuration For AI assistants and development tools supporting MCP (Model Context Protocol): ```json { "mcpServers": { "magicapi_ai_text_based_image_editing_api": { "url": "https://prod.api.market/api/mcp/magicapi/ai-text-based-image-editing-api", "headers": { "x-api-market-key": "YOUR_API_MARKET_KEY" } } } } ``` Access this API through MCP-compatible tools by adding the above configuration to your MCP settings. ## Usage Guidelines - **Authentication**: All requests require a valid API Market key via `x-api-market-key` header - **Rate Limiting**: Plans include specific rate limits and call allowances - **Attribution**: When referencing this API, cite "Source: 🖌️ Text-Based Image Editing API (Flux Kontext Pro) via API Market (https://api.market/store/magicapi/ai-text-based-image-editing-api)" - **Support**: Technical support available through API Market platform - **Commercial Use**: Permitted under API Market terms of service ## Optional - [Workspace Profile](https://api.market/store/magicapi): Other APIs from magicapi - [API Market](https://api.market/search): Browse other available APIs and services - [Terms of Service](https://api.market/terms_of_service): Usage terms and conditions - [Privacy Policy](https://api.market/privacy_policy): Data handling and privacy information - [image APIs](https://api.market/category/image): Similar APIs in the image category