Documentation
¶
Overview ¶
Package meshy implements engine.Engine for the Meshy 3D model generation API.
Both text-to-3D and image-to-3D are async: POST /openapi/v2/text-to-3d or /openapi/v2/image-to-3d creates a task, GET /openapi/v2/text-to-3d/{id} or /openapi/v2/image-to-3d/{id} polls for completion. Auth: Authorization: Bearer {key}, env MESHY_API_KEY.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrMissingPrompt = fmt.Errorf("meshy: missing prompt in workflow graph")
Functions ¶
func ConfigSchema ¶
func ConfigSchema() []engine.ConfigField
ConfigSchema returns the configuration fields required by the Meshy engine.
func DefaultProvider ¶ added in v0.15.0
DefaultProvider returns preset engine configurations for meshy.
func ModelInfos ¶ added in v0.16.0
ModelInfos returns i18n metadata for all Meshy models.
func ModelsByCapability ¶
ModelsByCapability returns all known Meshy capabilities grouped by type.
Types ¶
type Config ¶
type Config struct {
APIKey string
BaseURL string
Endpoint string // "text-to-3d" or "image-to-3d"
HTTPClient *http.Client
WaitForCompletion bool
PollInterval time.Duration
OnProgress epoll.OnProgress
}
Config configures the Meshy engine.
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine implements engine.Engine for Meshy.
func (*Engine) Capabilities ¶
func (e *Engine) Capabilities() engine.Capability
Capabilities implements engine.Describer.