Skip to content

[feat] Integrate the MOSS API for MOSS Image generation #138

Open

Description

@hsliuustc0106

Requirement

Integrate the MOSS API into OpenDirector and offer MOSS Image as an optional image generation service in the existing creation workflow.

The user provided a screenshot of the MOSS API platform home page showing that the MOSS Image API is available, with links to a Playground, API Docs and API key creation. The screenshot advertises multilingual text rendering, long prompts and precise JSON layout control; actual support must be verified against official documentation and the API, rather than treated as already verified.

Scope

  • Verify the endpoint, authentication, model identifiers, request parameters and response format against official API documentation, and cite the documentation in the implementation notes.
  • Use existing provider and model configuration mechanisms to let users configure a MOSS API key and select a model. Keep this service optional and do not change the default provider.
  • Support text-to-image generation and integrate results with the existing canvas and asset management workflows.
  • Expose image editing, reference images, dimensions, layout and other capabilities through the existing mechanism only after official interface support is confirmed; do not assume compatibility with other providers.
  • Handle authentication failures, rate limits, timeouts and server errors with understandable feedback; do not leak API keys in logs.
  • Document configuration, usage, supported capabilities and limitations.

Acceptance criteria (implementer/reviewer to perform and provide evidence)

  • With valid credentials, image generation can be initiated from OpenDirector and the result displayed, saved and reused.
  • Invalid credentials, rate limits and timeouts produce clear feedback without affecting other providers.
  • Provide test records and end-to-end screenshots or video, identifying the actual model and API version used.

To be confirmed by the implementer

The user's screenshot did not include the platform URL or API documentation address. Verify the official entry point, billing and actual capabilities before integration.

This issue records a product requirement; implementation, acceptance and evidence are the responsibility of a future assignee.

Activity

  1. barkly1te commented on Nov 6, 2026

    @barkly1te
    Contributor

    Hi, I'd like to work on this issue.

    I've located the official MOSS Image API documentation:
    https://platform.moss.cn/docs/reference/images-generations/

    I plan to follow the existing provider architecture and start with text-to-image generation, model/API key configuration, error handling, and integration with the existing asset workflow.

    Would this approach align with the project's expectations? If so, I'd be happy to submit a PR.

  2. FayeSpica commented on Nov 6, 2026

    @FayeSpica
    Collaborator

    Thanks for offering to work on this, @barkly1te! Yes, please go ahead. Please include these three models:

    Model Endpoint
    moss-tts-1.5-flash /v1/audio/speech
    moss-image-sft-1.0 /v1/images/generations
    moss-image-base-1.0 /v1/images/generations

    Please add MOSS Open Platform (MOSS开放平台 in Chinese) to the Add Service → Provider dropdown for both Image Generation and Speech Generation. Use the official MOSS logo, prefill https://api.mosi.cn/v1, and list the relevant models for each service type. Official MOSS icon

    In the PR, please include screenshots showing the provider entry and model list for both service types, a generated image, and the speech result in the audio player.

  3. added
    type:featNew capability or behaviour
    area:providerModel providers and generation protocols
    blockedCannot proceed on external input, credentials or decisions
    and removed on Nov 6, 2026
  4. changed the title [-][feat] 对接 MOSS API,支持 MOSS Image 图像生成[/-] [+][feat] Integrate the MOSS API for MOSS Image generation[/+] on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:providerModel providers and generation protocolsblockedCannot proceed on external input, credentials or decisionshelp wantedExtra attention is neededmodality:imageImage generation or editingprovider:mossMOSS API servicestype:featNew capability or behaviour

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions