{"id":22261735,"url":"https://github.com/jsonfm/fastapi-text-to-image","last_synced_at":"2026-04-27T21:32:16.997Z","repository":{"id":237514082,"uuid":"794606115","full_name":"jsonfm/fastapi-text-to-image","owner":"jsonfm","description":"An API to convert a text message into an image with that message","archived":false,"fork":false,"pushed_at":"2024-05-01T19:59:44.000Z","size":109,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T13:46:56.059Z","etag":null,"topics":["fastapi","python"],"latest_commit_sha":null,"homepage":"https://fastapi-text-to-image.vercel.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsonfm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-01T15:13:55.000Z","updated_at":"2024-05-15T02:42:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f57038f-d66d-4437-a079-5491660c051d","html_url":"https://github.com/jsonfm/fastapi-text-to-image","commit_stats":null,"previous_names":["jsonfm/fastapi-text-to-imagee"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jsonfm/fastapi-text-to-image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonfm%2Ffastapi-text-to-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonfm%2Ffastapi-text-to-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonfm%2Ffastapi-text-to-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonfm%2Ffastapi-text-to-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsonfm","download_url":"https://codeload.github.com/jsonfm/fastapi-text-to-image/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonfm%2Ffastapi-text-to-image/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32356598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastapi","python"],"created_at":"2024-12-03T09:14:08.498Z","updated_at":"2026-04-27T21:32:16.981Z","avatar_url":"https://github.com/jsonfm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Text To image API\n\nconvert a text string into an image with that string\n\n### Code\n\n```python\n@app.post(\"/text-to-image\", tags=[\"API\"], response_model=TextToImageResponse)\ndef text_to_image_api(form: TextToImageForm, with_mime: bool = False):\n    image = text_to_image(\n        form.text,\n        font_size=form.font_size,\n        bg_color=form.bg_color,\n        font_color=form.font_color,\n        image_size=form.image_size,\n    )\n    if with_mime:\n        image = f\"data:image/png;base64,{image}\"\n    return {\"image\": image}\n```\n\n### Run\n\n```\nuvicorn main:app --host 0.0.0.0 --port 8080\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsonfm%2Ffastapi-text-to-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsonfm%2Ffastapi-text-to-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsonfm%2Ffastapi-text-to-image/lists"}