Model Context Protocol (MCP)
AI apps such as Claude, ChatGPT and Cursor can use HalalGen through its MCP server:
- Server address:
https://mcp.halalgen.ai/mcp (Streamable HTTP).
- Address for each app: Claude
https://mcp.halalgen.ai/claude/mcp, ChatGPT https://mcp.halalgen.ai/openai/mcp, Thaura https://mcp.halalgen.ai/thaura/mcp, Cursor and VS Code https://mcp.halalgen.ai/cursor/mcp.
- Discovery file:
https://halalgen.ai/.well-known/mcp.json
- Authentication: an API key from the developer console, sent as
Authorization: Bearer sk-.... A key is sk- followed by 64 hex characters.
MCP tools
generate_image: makes pictures from a prompt.
generate_video: starts a video. check_video_status gives the link when it is done.
edit_image: changes one of your own pictures with words.
remove_background: cuts the subject out of one of your own pictures.
upscale_image: upscales one of your own pictures to 4K.
generate_logo and place_product: logos, and your product photo in a new scene.
list_generations and search_vault: the pictures and videos you made.
get_balance, list_models and estimate_cost: your balance, the models, and what a job costs.
HalalGen REST API v1
Base URL https://api.halalgen.ai. The API's OpenAPI file is at https://api.halalgen.ai/v1/openapi.yaml, with a JSON copy at https://halalgen.ai/openapi.json. Making pictures or videos with the API needs a paid plan.
GET /v1/models: the models.
GET /v1/balance: your balance.
POST /v1/generate: starts 1 to 4 pictures and answers 202 with an id.
GET /v1/prompts/{id}: the status and pictures of a picture job.
POST /v1/video/generate: starts a video and answers 202 with an id.
GET /v1/video/{id}: the status and link of a video.
POST /v1/uploads: uploads one of your own pictures.
POST /v1/logo: starts a logo.
POST /v1/product-placement: puts your product photo in a new scene.
POST /v1/upscale: upscales one of your own pictures.
POST /v1/remove-background: removes the background of one of your own pictures.