There are four parameters in total, so there is nothing to learn — and the local path in the response is the detail worth noticing, because it means a follow-up step can open the file rather than re-downloading from a URL that may expire. Bilingual documentation, English and Chinese, ships in the repository.
A small TypeScript server wrapping Together AI's image generation. One tool, a short parameter list, and a response that gives you the hosted image and a cached file at the same time.
- `generate_image` takes a required `prompt` and returns generated images
- `steps` controls the number of diffusion steps, defaulting to 4 within a range of 1 to 4
- `n` sets how many images to generate, defaulting to 1 within a range of 1 to 4
- The response carries both `image_urls` and `local_paths`, so the image is available online and on disk without a second step
Node.js v14 or later and a Together AI API key in TOGETHER_API_KEY, either exported or placed in a .env file. Clone the repository, install, build, and point the client at the compiled entry point.
