Overview
Connect a self-hosted image endpoint or external proxy on Android or iOS. The endpoint must implement image generation; a chat-only OpenAI-compatible endpoint is insufficient.
Support in SDAI
- Platforms
- Android and iOS
- Integration readiness
- Stable
- App availability
- Android (Google Play, Full and FOSS) and iOS
- Integration version
- 2026.11.14 (app catalog version)
Badges describe the SDAI integration. Model and device requirements still apply; a provider’s own website may offer additional features.
Setup & first image
1. Choose an image-capable server
An OpenAI-compatible chat server is not sufficient. SDAI needs the Images generation API: the server must accept an image model ID, prompt and image size, then return base64 image data or a downloadable image URL.
Use your server’s own installation guide and confirm it supports POST /v1/images/generations, not only chat completions. SDAI does not install or run the server on your phone.
2. Example: prepare LocalAI for image generation
LocalAI’s quickstart offers desktop installers and server/container installation options. Install the version appropriate to the host and start its server. The default port is 8080.
- Open LocalAI on the host at
http://localhost:8080. - In Models → Explore, install an image-generation model that fits the host. A chat or image-understanding model cannot generate images.
- Follow the LocalAI image-generation guide for the chosen backend. For example, the documented gallery includes
flux.1-dev-ggml. Its hardware and memory requirements still apply. - Note the installed model’s exact name. That is the ID you will enter in SDAI.
- Complete a generation using LocalAI’s documented image workflow before adding the mobile client.
LocalAI’s API can listen beyond localhost. Configure authentication before sharing it. Its quickstart documents API keys and user authentication. Copy the API credential intended for client requests, not an account password.
3. Determine the complete API prefix
For a LocalAI host at 192.168.1.10, the SDAI prefix would usually be:
http://192.168.1.10:8080/v1
For a server behind a reverse proxy, preserve its path:
https://images.example.com/proxy/v1
The port, prefix and model ID must match your deployment. SDAI appends models for its connection check and images/generations when generating. It does not add /v1 for you. Do not paste a URL ending in /images/generations into the prefix field.
Allow the server’s port through its firewall and check its address from the phone. Use the host’s LAN address rather than the phone’s localhost. Use HTTPS or a private VPN for access outside a trusted LAN.
4. Connect SDAI and request an image
- Open Configuration → OpenAI-compatible.
- Paste the complete API prefix.
- Enter the server’s bearer API key. Leave the field empty only if the deployment intentionally accepts unauthenticated requests.
- Tap Connect.
- Enter the exact image model ID and a size supported by that model.
- Write a prompt and tap Imagine. Start with a single image. SDAI executes larger batches as separate, sequential requests.
A successful models check does not prove that a chat-only deployment supports images. Conversely, a server whose model-list route returns 404 or 405 can be saved as unverified, but still needs a working image-generation route.
5. External ChatGPT proxies
A proxy is optional. For direct sign-in inside SDAI, choose the separate ChatGPT OAuth provider.
If you use an external project such as openai-oauth, follow that project’s current installation and authentication documentation on the server. Its CLI documents host/port configuration, but the deployed version must also implement the Images generation route. Model names or an OpenAI-compatible label alone do not establish that capability.
Keep the detailed SDAI compatibility reference available when checking unverified connections, response formats and unsupported generation controls.
Models
Enter the exact model ID exposed by your server. SDAI accepts base64 output or downloadable HTTP(S) image URLs and requests one image at a time for sequential batches.
Limitations & requirements
Text-to-image only. Negative prompts, samplers, steps, CFG, seed and quality are not sent. SDAI appends models and images/generations to your prefix; it does not add /v1. A models endpoint returning 404 or 405 can be saved as unverified.
Prompts and any supported input images are sent to the configured service or server. Review its privacy and usage policies. SDAI does not set the provider’s prices or guarantee account access.
Troubleshooting
Remove images/generations from the base URL if it was pasted there. Check the model ID, supported dimensions and optional key. Protect access to keyless proxies.
If the problem persists, record the app version, platform, provider, model and exact error. Ask in the SDAI community or report an issue. Remove API keys and personal data from anything you share.
Resources & next steps
- OpenAI-compatible project & documentation
- Detailed OpenAI-compatible reference
- SDAI frequently asked questions
- Privacy policy
- Get SDAI
Choose this provider in SDAI Configuration, follow the setup steps above and generate your first image.